2008-10-26 03:56:18 +03:00
|
|
|
set(LLVM_NO_RTTI 1)
|
|
|
|
|
|
|
|
# TODO: Add -maltivec when ARCH is PowerPC.
|
|
|
|
|
|
|
|
add_clang_library(clangLex
|
|
|
|
HeaderMap.cpp
|
|
|
|
HeaderSearch.cpp
|
|
|
|
Lexer.cpp
|
|
|
|
LiteralSupport.cpp
|
|
|
|
MacroArgs.cpp
|
|
|
|
MacroInfo.cpp
|
|
|
|
PPCaching.cpp
|
|
|
|
PPDirectives.cpp
|
|
|
|
PPExpressions.cpp
|
|
|
|
PPLexerChange.cpp
|
|
|
|
PPMacroExpansion.cpp
|
2009-07-16 01:08:41 +04:00
|
|
|
PTHLexer.cpp
|
2008-10-26 03:56:18 +03:00
|
|
|
Pragma.cpp
|
Introduce the notion of a "preprocessing record", which keeps track of
the macro definitions and macro instantiations that are found
during preprocessing. Preprocessing records are *not* generated by
default; rather, we provide a PPCallbacks subclass that hooks into the
existing callback mechanism to record this activity.
The only client of preprocessing records is CIndex, which keeps track
of macro definitions and instantations so that they can be exposed via
cursors. At present, only token annotation uses these facilities, and
only for macro instantiations; both will change in the near
future. However, with this change, token annotation properly annotates
macro instantiations that do not produce any tokens and instantiations
of macros that are later undef'd, improving our consistency.
Preprocessing directives that are not macro definitions are still
handled by clang_annotateTokens() via re-lexing, so that we don't have
to track every preprocessing directive in the preprocessing record.
Performance impact of preprocessing records is still TBD, although it
is limited to CIndex and therefore out of the path of the main compiler.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98836 91177308-0d34-0410-b5e6-96231b3b80d8
2010-03-18 20:52:52 +03:00
|
|
|
PreprocessingRecord.cpp
|
2008-10-26 03:56:18 +03:00
|
|
|
Preprocessor.cpp
|
2008-11-19 21:46:39 +03:00
|
|
|
PreprocessorLexer.cpp
|
2008-10-26 03:56:18 +03:00
|
|
|
ScratchBuffer.cpp
|
2009-02-13 18:42:50 +03:00
|
|
|
TokenConcatenation.cpp
|
2009-07-16 01:08:41 +04:00
|
|
|
TokenLexer.cpp
|
2008-10-26 03:56:18 +03:00
|
|
|
)
|
2009-03-17 02:06:59 +03:00
|
|
|
|
|
|
|
add_dependencies(clangLex ClangDiagnosticLex)
|