class Preprocessor: Now owns the "predefines" char*; it deletes [] it in its dstor.
clang.cpp: InitializePreprocessor now makes a copy of the contents of PredefinesBuffer and passes it to the preprocessor object. clang.cpp: DriverPreprocessorFactory now calls "InitializePreprocessor" instead of this being done in main(). html::HighlightMacros() now takes a PreprocessorFactory, allowing it to conjure up a new Preprocessor to highlight macros. class HTMLDiagnostics now takes a PreprocessorFactory* that it can use for html::HighlightMacros(). Updated clients of HTMLDiagnostics to use this new interface. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49875 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- Driver/ASTConsumers.cpp 14 additions, 7 deletionsDriver/ASTConsumers.cpp
- Driver/ASTConsumers.h 5 additions, 3 deletionsDriver/ASTConsumers.h
- Driver/HTMLDiagnostics.cpp 11 additions, 9 deletionsDriver/HTMLDiagnostics.cpp
- Driver/HTMLDiagnostics.h 8 additions, 4 deletionsDriver/HTMLDiagnostics.h
- Driver/HTMLPrint.cpp 10 additions, 9 deletionsDriver/HTMLPrint.cpp
- Driver/clang.cpp 62 additions, 33 deletionsDriver/clang.cpp
- include/clang/Lex/Preprocessor.h 2 additions, 0 deletionsinclude/clang/Lex/Preprocessor.h
- include/clang/Rewrite/HTMLRewrite.h 2 additions, 1 deletioninclude/clang/Rewrite/HTMLRewrite.h
- lib/Lex/Preprocessor.cpp 2 additions, 0 deletionslib/Lex/Preprocessor.cpp
- lib/Rewrite/HTMLRewrite.cpp 18 additions, 11 deletionslib/Rewrite/HTMLRewrite.cpp
Loading
Please register or sign in to comment