- Oct 19, 2009
-
-
Steve Naroff authored
Removing this shared data should enable clang_createTranslationUnit/clang_createTranslationUnitFromSourceFile to be run from multiple threads (related to <rdar://problem/7303432>). llvm-svn: 84499
-
Daniel Dunbar authored
column computation isn't correct and could exceed the line length, which resulted in a buffer overflow later. - Chris, is there a better way for this code to compute the final column used by the caret? llvm-svn: 84475
-
- Oct 18, 2009
-
-
Daniel Dunbar authored
are updated. llvm-svn: 84447
-
Daniel Dunbar authored
- strcmp -> == - OS.write(II->getName() ...) -> OS << II->getNameStr() - Avoid std::string concatenation - Use getNameStr().str() when an std::string is really needed. llvm-svn: 84437
-
Daniel Dunbar authored
llvm-svn: 84436
-
Benjamin Kramer authored
llvm-svn: 84415
-
John McCall authored
TemplateTypeParmType with the substituted type directly; instead, replace it with a SubstTemplateTypeParmType which will note that the type was originally written as a template type parameter. This makes it reasonable to preserve source information even through template substitution. Also define the new SubstTemplateTypeParmType class, obviously. For consistency with current behavior, we stringize these types as if they were the underlying type. I'm not sure this is the right thing to do. At any rate, I paled at adding yet another clause to the don't-desugar 'if' statement, so I extracted a function to do it. The new function also does The Right Thing more often, I think: e.g. if we have a chain of typedefs leading to a vector type, we will now desugar all but the last one. llvm-svn: 84412
-
John McCall authored
TypeLoc class names to be $(Type classname)Loc. Rewrite the visitor. Provide skeleton implementations for all the new TypeLocs. Handle all cases in PCH. Handle a few more cases when inserting location information in SemaType. It should be extremely straightforward to add new location information to existing TypeLoc objects now. llvm-svn: 84386
-
Daniel Dunbar authored
llvm-svn: 84375
-
Nuno Lopes authored
llvm-svn: 84371
-
- Oct 17, 2009
-
-
Daniel Dunbar authored
llvm-svn: 84360
-
Douglas Gregor authored
so that we catch any macros used within the declarations and types. Also, properly store a NULL selector. llvm-svn: 84334
-
Daniel Dunbar authored
llvm-svn: 84301
-
Ted Kremenek authored
its own BumpPtrAllocator to allocate ASTs. Change clang_createTranslationUnit (CIndex) to pass 'UseBumpPtrAllocator = true' to ASTUnit::LoadFromPCHFile(). llvm-svn: 84296
-
Douglas Gregor authored
format, so that we don't end up with multiple declaration and types blocks. Also, fix a few obscure bugs with PCH loading and generation: - If the DeclIDs DenseMap reallocates while we are writing a declaration (due to recursively writing other declarations), we could end up writing a bad ID to ExternalDefinitions. - When loading an ArrayLoc (part of DeclaratorInfo), we need to set the size expression to NULL if no size expression was provided. PCH -> AST rewriting is still partly broken, unfortunately. llvm-svn: 84293
-
Douglas Gregor authored
interface that can load those source-location entries on demand (from another PCH file). llvm-svn: 84287
-
- Oct 16, 2009
-
-
John McCall authored
core PCH reader/writer implementation files. llvm-svn: 84278
-
Douglas Gregor authored
header or not via a new "PCHLevel" field in Decl. We currently use this information to help CIndex filter out declarations that came from a precompiled header (rather than from an AST file). Further down the road, it can be used to help implement multi-level precompiled headers. llvm-svn: 84267
-
Douglas Gregor authored
only supporting a single stat cache. The immediate benefit of this change is that we can now generate a PCH/AST file when including another PCH file; in the future, the chain of stat caches will likely be useful with multiple levels of PCH files. llvm-svn: 84263
-
John Thompson authored
llvm-svn: 84227
-
John McCall authored
TypeLoc records for declarations; it should not be necessary to represent it directly in the type system. Please complain if you were using these classes and feel you can't replicate previous functionality using the TypeLoc API. llvm-svn: 84222
-
Steve Naroff authored
llvm-svn: 84208
-
- Oct 15, 2009
-
-
Edward O'Callaghan authored
llvm-svn: 84176
-
John McCall authored
most of the unsafe boilerplate out of TypeLoc. Create a QualifiedLoc class to represent the idea that we *might* start representing source locations of qualifiers. Dealing with qualifiers explicitly like this also lets us efficiently ignore them in all the concrete cases. This should make it obvious and easy to add new TypeLoc subclasses. llvm-svn: 84168
-
- Oct 14, 2009
-
-
Rafael Espindola authored
this is only used in darwin10, 64 bit ubuntu 9.10 and 64 bit openSUSE 11.1. llvm-svn: 84115
-
- Oct 13, 2009
-
-
John Thompson authored
llvm-svn: 84007
-
- Oct 12, 2009
-
-
Mike Stump authored
llvm-svn: 83898
-
Edward O'Callaghan authored
llvm-svn: 83847
-
- Oct 09, 2009
-
-
Mike Stump authored
llvm-svn: 83666
-
Mike Stump authored
llvm-svn: 83664
-
Axel Naumann authored
llvm-svn: 83663
-
Mike Stump authored
llvm-svn: 83599
-
Mike Stump authored
existing MinGW headers, plus the newer 4.4.0 version. Patch by John Thompson. llvm-svn: 83594
-
Douglas Gregor authored
llvm-svn: 83582
-
- Oct 08, 2009
-
-
Ted Kremenek authored
llvm-svn: 83560
-
- Oct 06, 2009
-
-
Rafael Espindola authored
llvm-svn: 83357
-
- Oct 05, 2009
-
-
Douglas Gregor authored
assume that PCH files from different Clang revisions are not compatible. Addresses <rdar://problem/7266572>. llvm-svn: 83323
-
- Oct 01, 2009
-
-
Rafael Espindola authored
-fno-exceptions in C++ code. We used to always define __EXCEPTIONS in C++. llvm-svn: 83199
-
- Sep 29, 2009
-
-
Argyrios Kyrtzidis authored
llvm-svn: 83112
-
Argyrios Kyrtzidis authored
llvm-svn: 83097
-