2008-10-26 08:56:18 +08:00
|
|
|
# TODO: Add -maltivec when ARCH is PowerPC.
|
|
|
|
|
2011-02-12 07:46:38 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS support)
|
|
|
|
|
2010-09-14 07:54:41 +08:00
|
|
|
set(LLVM_USED_LIBS clangBasic)
|
|
|
|
|
2008-10-26 08:56:18 +08:00
|
|
|
add_clang_library(clangLex
|
|
|
|
HeaderMap.cpp
|
|
|
|
HeaderSearch.cpp
|
|
|
|
Lexer.cpp
|
|
|
|
LiteralSupport.cpp
|
|
|
|
MacroArgs.cpp
|
|
|
|
MacroInfo.cpp
|
2011-11-12 03:10:28 +08:00
|
|
|
ModuleMap.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
PPCaching.cpp
|
2011-12-20 16:42:15 +08:00
|
|
|
PPCallbacks.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
PPDirectives.cpp
|
|
|
|
PPExpressions.cpp
|
|
|
|
PPLexerChange.cpp
|
|
|
|
PPMacroExpansion.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
PTHLexer.cpp
|
2008-10-26 08:56:18 +08: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.
llvm-svn: 98836
2010-03-19 01:52:52 +08:00
|
|
|
PreprocessingRecord.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
Preprocessor.cpp
|
2008-11-20 02:46:39 +08:00
|
|
|
PreprocessorLexer.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
ScratchBuffer.cpp
|
2009-02-13 23:42:50 +08:00
|
|
|
TokenConcatenation.cpp
|
2009-07-16 05:08:41 +08:00
|
|
|
TokenLexer.cpp
|
2008-10-26 08:56:18 +08:00
|
|
|
)
|
2009-03-17 07:06:59 +08:00
|
|
|
|
2010-10-20 10:31:43 +08:00
|
|
|
add_dependencies(clangLex ClangDiagnosticLex ClangAttrSpellings)
|