aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/MultiplexConsumer.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-12-04Sort all of Clang's files under 'lib', and fix up the broken headersChandler Carruth1-1/+0
uncovered. This required manually correcting all of the incorrect main-module headers I could find, and running the new llvm/utils/sort_includes.py script over the files. I also manually added quite a few missing headers that were uncovered by shuffling the order or moving headers up to be main-module-headers. llvm-svn: 169237
2012-03-08Replace MarkVarRequired with a more genericRafael Espindola1-2/+2
HandleCXXStaticMemberVarInstantiation. Suggested by Argyrios. llvm-svn: 152320
2012-03-05Fix a small difference in sema and codegen views of what needs to be output.Rafael Espindola1-0/+5
In the included testcase, soma thinks that we already have a definition after we see the out of line decl. Codegen puts it in a deferred list, to be output if a use is seen. This would break when we saw an explicit template instantiation definition, since codegen would not be notified. This patch adds a method to the consumer interface so that soma can notify codegen that this decl is now required. llvm-svn: 152024
2012-02-10[libclang] Indexing API: Fully index implict template instantiations.Argyrios Kyrtzidis1-0/+5
llvm-svn: 150267
2012-02-10Add ArrayRef goodness in MultiplexASTMutationListener.Argyrios Kyrtzidis1-3/+3
llvm-svn: 150266
2012-02-10Update MultiplexASTMutationListener with the missing methods from ↵Argyrios Kyrtzidis1-0/+18
ASTMutationListener. llvm-svn: 150265
2012-02-04ArrayRef goodness in MultiplexConsumer, no functionality change.Argyrios Kyrtzidis1-2/+3
llvm-svn: 149764
2011-11-28[libclang] Indexing API: If the client requested to get a CXTranslationUnit ↵Argyrios Kyrtzidis1-2/+8
after indexing, honor all the TU options. llvm-svn: 145229
2011-11-18Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continueArgyrios Kyrtzidis1-1/+2
parsing or false to abort parsing. llvm-svn: 144943
2011-09-15[PCH] Overhaul how preprocessed entities are [de]serialized.Argyrios Kyrtzidis1-2/+2
-Use an array of offsets for all preprocessed entities -Get rid of the separate array of offsets for just macro definitions; for references to macro definitions use an index inside the preprocessed entities array. -Deserialize each preprocessed entity lazily, at first request; not in bulk. Paves the way for binary searching of preprocessed entities that will offer efficiency and will simplify things on the libclang side a lot. llvm-svn: 139809
2011-04-29Add a decl update when a static data member of a class template is ↵Sebastian Redl1-0/+6
instantiated in a different PCH than its containing class. Otherwise we get double definition errors. Fixes a Boost.MPL problem that affects Boost.Accumulators and probably a lot more of Boost. llvm-svn: 130488
2011-04-24Synthesizing the definition of an implicit member is an AST modification, so ↵Sebastian Redl1-0/+6
notify any mutation listeners of it. This fixes a crasher in chained PCH, where an implicit destructor in a PCH gets a definition in a chained PCH, which is then lost. However, any further use of the destructor would cause its definition to be regenerated in the final file, hiding the bug. llvm-svn: 130103
2011-04-14Chained PCH: Remember when additional specializations are added to a ↵Sebastian Redl1-0/+7
function template from a previous PCH. Fixes the only crasher when using massive chains on Clang's Sema component. We still have some incomplete codegen there. llvm-svn: 129516
2011-01-25Add -add-plugin flag, which runs plugins in addition to codegen.Nico Weber1-0/+221
llvm-svn: 124227