- Feb 16, 2010
-
-
Daniel Dunbar authored
llvm-svn: 96316
-
Daniel Dunbar authored
llvm-svn: 96315
-
Daniel Dunbar authored
llvm-svn: 96314
-
Douglas Gregor authored
llvm-svn: 96299
-
- Feb 15, 2010
-
-
Douglas Gregor authored
Tell ASTMerge to merge every declaration it sees, rather than cherry-picking those declarations that we know will work. llvm-svn: 96280
-
Fariborz Jahanian authored
(fixes radar 7649577). llvm-svn: 96270
-
- Feb 14, 2010
-
-
Ted Kremenek authored
of operating on each code decl. This exposes two flaws in AnalysisConsumer that should eventually be fixed: (1) It is not possible to associate multiple "actions" with a single command line argument. This will require the notion of an "analysis" group, and possibly tablegen support. (although eventually we want to support dynamically loading analyses as well) (2) AnalysisConsumer may not actually be scanning the declarations in namespaces. We'll experiment first in LLVMConventionsChecker before changing the behavior in AnalysisConsumer. llvm-svn: 96183
-
Ted Kremenek authored
as imput. llvm-svn: 96182
-
Benjamin Kramer authored
Pass StringRefs to InsertText/ReplaceText in RewriteObjC and remove a ton of unnecessary length arguments. llvm-svn: 96164
-
Ted Kremenek authored
Currently these checks are intended to be largely syntactical, but may get more sophisticated over time. As an initial foray into this brave new world, emit a static analyzer warning when binding a temporary 'std::string' to an 'llvm::StringRef' where the lifetime of the 'std::string' does not outlive the 'llvm::StringRef'. llvm-svn: 96147
-
Ted Kremenek authored
(1) Since CXXMethodDecl subclasses FunctionDecl (and CXXDestructorDecl and CXXConversion subclass CXXMethodDecl), refactor switch statement to handle them all in one spot. (2) Use 'DeclarationName::getAsString()' to handle all functions that don't have simple identifiers (fixing a null dereference when scanning for specific functions). llvm-svn: 96146
-
- Feb 13, 2010
-
-
Chris Lattner authored
Dyachenko Dmitry. Our system is "not so elegant" here. llvm-svn: 96111
-
John McCall authored
to the driver, and support it in CodeGenOptsToArgs(). Note that this changes the default behavior of clang -cc1 to always run the verifier. llvm-svn: 96077
-
John McCall authored
disabled in NDEBUG builds). The option applies only to -cc1 invocations and is: -disable_llvm_verifier llvm-svn: 96046
-
Ted Kremenek authored
llvm-svn: 96041
-
- Feb 12, 2010
-
-
Chris Lattner authored
worth asserting about in this code: 1) if the source range is bogus (begin loc after end loc), and 2) if the client is trying to highlight a range that is purely whitespace. It is possible to just silently ignore #2, but it seems like it is always a bug, so lets keep asserting on this condition, but with a better assert message. llvm-svn: 95998
-
Fariborz Jahanian authored
with block-pointer-type as one or more of its arguments. Fixes radar 7638400. llvm-svn: 95992
-
Douglas Gregor authored
within the declarator of another declaration, from Enea Zaffanella! llvm-svn: 95991
-
Tanya Lattner authored
llvm-svn: 95940
-
Fariborz Jahanian authored
order of constructor arguments (all block API specific). This was exposed only in a large block literal expression in a large file where PtrSet container size execceded its limit and required reallocation. Fixes radar 7638294 llvm-svn: 95936
-
- Feb 11, 2010
-
-
Ted Kremenek authored
Allocate the SubExprs array in ObjCMessageExpr using the allocator associated with ASTContext. This fixes yet another leak (<rdar://problem/7639260>). llvm-svn: 95930
-
Douglas Gregor authored
incompatibility and show where the structural differences are. For example: struct1.c:36:8: warning: type 'struct S7' has incompatible definitions in different translation units struct S7 { int i : 8; unsigned j : 8; } x7; ^ struct1.c:36:33: note: bit-field 'j' with type 'unsigned int' and length 8 here struct S7 { int i : 8; unsigned j : 8; } x7; ^ struct2.c:33:33: note: bit-field 'j' with type 'unsigned int' and length 16 here struct S7 { int i : 8; unsigned j : 16; } x7; ^ There are a few changes to make this work: - ASTImporter now has only a single Diagnostic object, not multiple diagnostic objects. Otherwise, having a warning/error printed via one Diagnostic and its note printed on the other Diagnostic could cause the note to be suppressed. - Implemented import functionality for IntegerLiteral (along with general support for statements and expressions) llvm-svn: 95900
-
Anders Carlsson authored
Right now, it's off by default but can be tested by passing -fdump-vtable-layouts to clang -cc1. This option will cause all vtables that will normally be emitted as part of codegen to also be dumped using the new layout code. I've also added a very simple new vtable layout test case. llvm-svn: 95865
-
Ted Kremenek authored
array associated with NonNullAttr. This fixes yet another leak when ASTContext uses a BumpPtrAllocator. Fixes: <rdar://problem/7637150> llvm-svn: 95863
-
Ted Kremenek authored
array allocated using the allocator in ASTContext. This addresses these strings getting leaked when using a BumpPtrAllocator (in ASTContext). Fixes: <rdar://problem/7636765> llvm-svn: 95853
-
Douglas Gregor authored
Decl subclasses. No functionality change. llvm-svn: 95841
-
Douglas Gregor authored
and CXXRecordDecl::getDefinition(); it's totally unnecessary. No functionality change. llvm-svn: 95836
-
Ted Kremenek authored
Allocate 'ObjCMethodList' objects (owned by Sema) using Sema's BumpPtrAllocator. Previously they were not getting freed. Fixes <rdar://problem/7635663>. llvm-svn: 95834
-
- Feb 10, 2010
-
-
Fariborz Jahanian authored
Fixes radar 7630551 llvm-svn: 95796
-
Douglas Gregor authored
translation units. llvm-svn: 95794
-
Fariborz Jahanian authored
in a declaration statement. Fixes radar 7628153. llvm-svn: 95788
-
Daniel Dunbar authored
calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787
-
Daniel Dunbar authored
llvm-svn: 95785
-
Douglas Gregor authored
merged with variables of constant array types. Also, make sure that we call DiagnosticClient's BeginSourceFile/EndSourceFile, so that it has a LangOptions to work with. llvm-svn: 95782
-
Fariborz Jahanian authored
Fixes radar 7630636. llvm-svn: 95744
-
Douglas Gregor authored
into another AST, including their include history. Here's an example error that involves a conflict merging a variable with different types in two translation units (diagnosed in the third AST context into which everything is merged). /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var2.c:3:5: error: external variable 'x2' declared with incompatible types in different translation units ('int' vs. 'double') int x2; ^ In file included from /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var1.c:3: /Volumes/Data/dgregor/Projects/llvm/tools/clang/test/ASTMerge/Inputs/var1.h:1:8: note: declared here with type 'double' double x2; ^ Although we maintain include history, we do not maintain macro instantiation history across a merge. Instead, we map down to the spelling location (for now!). llvm-svn: 95732
-
- Feb 09, 2010
-
-
Douglas Gregor authored
that we get readable diagnostics such as: error: external variable 'x1' declared with incompatible types in different translation units ('double *' vs. 'float **') However, there is no translation of source locations, yet. llvm-svn: 95704
-
Fariborz Jahanian authored
This is a non-fragile-abi feature only. Since it breaks existing code, it is currently placed under -fobjc-nonfragile-abi2 option for test purposes only until further notice. WIP. llvm-svn: 95685
-
Douglas Gregor authored
context with the AST importer. WIP, still useless but at least it has a test. llvm-svn: 95683
-
- Feb 08, 2010
-
-
Douglas Gregor authored
defined by itself, from Enea Zaffanella! llvm-svn: 95586
-