Add a -rewrite-includes option, which is similar to -rewrite-macros, but only...
Add a -rewrite-includes option, which is similar to -rewrite-macros, but only expands #include directives. Patch contributed by Lubos Lunak (l.lunax@suse.cz). Review by Matt Beaumont-Gay (matthewbg@google.com). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158093 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Driver/CC1Options.td 2 additions, 0 deletionsinclude/clang/Driver/CC1Options.td
- include/clang/Frontend/FrontendOptions.h 1 addition, 0 deletionsinclude/clang/Frontend/FrontendOptions.h
- include/clang/Lex/Preprocessor.h 13 additions, 0 deletionsinclude/clang/Lex/Preprocessor.h
- include/clang/Rewrite/FrontendActions.h 5 additions, 0 deletionsinclude/clang/Rewrite/FrontendActions.h
- include/clang/Rewrite/Rewriters.h 5 additions, 0 deletionsinclude/clang/Rewrite/Rewriters.h
- lib/Frontend/CompilerInvocation.cpp 3 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- lib/FrontendTool/ExecuteCompilerInvocation.cpp 1 addition, 0 deletionslib/FrontendTool/ExecuteCompilerInvocation.cpp
- lib/Lex/Lexer.cpp 3 additions, 2 deletionslib/Lex/Lexer.cpp
- lib/Lex/PPDirectives.cpp 19 additions, 0 deletionslib/Lex/PPDirectives.cpp
- lib/Lex/Preprocessor.cpp 1 addition, 0 deletionslib/Lex/Preprocessor.cpp
- lib/Rewrite/CMakeLists.txt 1 addition, 0 deletionslib/Rewrite/CMakeLists.txt
- lib/Rewrite/FrontendActions.cpp 9 additions, 0 deletionslib/Rewrite/FrontendActions.cpp
- lib/Rewrite/InclusionRewriter.cpp 370 additions, 0 deletionslib/Rewrite/InclusionRewriter.cpp
- test/Frontend/Inputs/rewrite-includes1.h 3 additions, 0 deletionstest/Frontend/Inputs/rewrite-includes1.h
- test/Frontend/Inputs/rewrite-includes2.h 1 addition, 0 deletionstest/Frontend/Inputs/rewrite-includes2.h
- test/Frontend/Inputs/rewrite-includes3.h 1 addition, 0 deletionstest/Frontend/Inputs/rewrite-includes3.h
- test/Frontend/Inputs/rewrite-includes4.h 1 addition, 0 deletionstest/Frontend/Inputs/rewrite-includes4.h
- test/Frontend/Inputs/rewrite-includes5.h 1 addition, 0 deletionstest/Frontend/Inputs/rewrite-includes5.h
- test/Frontend/Inputs/rewrite-includes6.h 2 additions, 0 deletionstest/Frontend/Inputs/rewrite-includes6.h
- test/Frontend/Inputs/rewrite-includes7.h 4 additions, 0 deletionstest/Frontend/Inputs/rewrite-includes7.h
Loading
Please register or sign in to comment