llvm-project/clang/lib/Frontend
Richard Trieu 97c45b6588 Use an iterative method instead of recursion for printing macro backtraces.
Store the locations for a macro expansion in a vector, then iterate over them
instead of using recursion.  This simplifies the logic around the backtrace
limit and gives easier access to the source locations.  No functionality change.

Patch by Zhengkai Wu.

Differential Revision: http://reviews.llvm.org/D11542

llvm-svn: 243477
2015-07-28 20:53:46 +00:00
..
Rewrite Switch users of the 'for (StmtRange range = stmt->children(); range; ++range)‘ pattern to range for loops. 2015-07-02 21:03:14 +00:00
ASTConsumers.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
ASTMerge.cpp Make the clang module container format selectable from the command line. 2015-07-17 01:19:54 +00:00
ASTUnit.cpp [Modules] Wrap the main ModuleManager visitor in a function_ref. 2015-07-25 12:14:04 +00:00
CMakeLists.txt Introduce a PCHContainerOperations interface (NFC). 2015-06-20 18:53:08 +00:00
CacheTokens.cpp Use raw_pwrite_stream in clang. 2015-04-14 15:15:49 +00:00
ChainedDiagnosticConsumer.cpp
ChainedIncludesSource.cpp Make the clang module container format selectable from the command line. 2015-07-17 01:19:54 +00:00
CodeGenOptions.cpp
CompilerInstance.cpp [modules] Produce an error if -cc1 wants to implicitly build a module and no 2015-07-21 18:07:47 +00:00
CompilerInvocation.cpp Add -femulated-tls flag to select the emulated TLS model. 2015-07-28 16:27:56 +00:00
CreateInvocationFromCommandLine.cpp [cuda] Driver changes to compile and stitch together host and device-side CUDA code. 2015-07-13 23:27:56 +00:00
DependencyFile.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
DependencyGraph.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
DiagnosticRenderer.cpp Use an iterative method instead of recursion for printing macro backtraces. 2015-07-28 20:53:46 +00:00
FrontendAction.cpp Make the clang module container format selectable from the command line. 2015-07-17 01:19:54 +00:00
FrontendActions.cpp Make the clang module container format selectable from the command line. 2015-07-17 01:19:54 +00:00
FrontendOptions.cpp Ensure that we still parse preprocessed CUDA files as CUDA when we use 2015-03-19 17:32:06 +00:00
HeaderIncludeGen.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
InitHeaderSearch.cpp Support mingw-w64 and mingw.org toolchains at any install location. 2015-07-02 04:45:27 +00:00
InitPreprocessor.cpp Make the clang module container format selectable from the command line. 2015-07-17 01:19:54 +00:00
LangStandards.cpp
LayoutOverrideSource.cpp
LogDiagnosticPrinter.cpp
Makefile
ModuleDependencyCollector.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
MultiplexConsumer.cpp [ObjC] Add NSValue support for objc_boxed_expressions 2015-06-26 05:28:36 +00:00
PCHContainerOperations.cpp Make the clang module container format selectable from the command line. 2015-07-17 01:19:54 +00:00
PrintPreprocessedOutput.cpp According to the OpenMP spec, all the preprocessor macros should be 2015-06-15 23:44:27 +00:00
SerializedDiagnosticPrinter.cpp Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:00:23 +00:00
SerializedDiagnosticReader.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
TextDiagnostic.cpp Give isCompatibleWithMSVC a better interface 2015-05-11 03:57:49 +00:00
TextDiagnosticBuffer.cpp Replace push_back(Constructor(foo)) with emplace_back(foo) for non-trivial types 2015-05-29 19:42:19 +00:00
TextDiagnosticPrinter.cpp
VerifyDiagnosticConsumer.cpp Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00