- May 01, 2012
-
-
James Molloy authored
Unify Options.td and CC1Options.td, in a first step towards unifying the serialization logic in Frontend and Driver. Reviewed by Eric, Doug and Chandler, and here: http://llvm.org/reviews/r/7/ llvm-svn: 155916
-
Benjamin Kramer authored
llvm-svn: 155914
-
NAKAMURA Takumi authored
clang/test/CodeGenCXX: Fix two tests, destructors.cpp and microsoft-abi-array-cookies.cpp, for -Asserts. llvm-svn: 155913
-
NAKAMURA Takumi authored
clang/test/Rewriter: Remove XFAIL and add -U__declspec to other 9 tests. mingw32 tends to define built-in __declspec. llvm-svn: 155911
-
NAKAMURA Takumi authored
clang/test/Rewriter/rewrite-modern-extern-c-func-decl.mm: Remove XFAIL and add -U__declspec. mingw32 tends to define built-in __declspec. llvm-svn: 155910
-
John McCall authored
to force the emission of vtordisps. llvm-svn: 155906
-
John McCall authored
working knowledge of the Microsoft ABI. Based on a patch by Dmitry Sokolov. llvm-svn: 155905
-
Abramo Bagnara authored
llvm-svn: 155904
-
Craig Topper authored
llvm-svn: 155900
-
John McCall authored
and only consider using __cxa_atexit in the Itanium logic. The default logic is to use atexit(). Emit "guarded" initializers in Microsoft mode unconditionally. This is definitely not correct, but it's closer to correct than just not emitting the initializer. Based on a patch by Timur Iskhodzhanov! llvm-svn: 155894
-
David Blaikie authored
I broke this in r155838 by not actually instantiating non-dependent default arg expressions. The motivation for that change was to avoid producing duplicate conversion warnings for such default args (we produce them once when we parse the template - there's no need to produce them at each instantiation) but without actually instantiating the default arg, things break in weird ways. Technically, I think we could still get the right diagnostic experience without the bugs if we instantiated the non-dependent args (for non-dependent params only) immediately, rather than lazily. But I'm not sure if such a refactoring/ change would be desirable so here's the conservative fix for now. llvm-svn: 155893
-
Ted Kremenek authored
Place several uncovered warnings under warning flags, and tweak diagnostic output including the term "gc" (in lowercase). llvm-svn: 155892
-
John McCall authored
llvm-svn: 155889
-
Ted Kremenek authored
Teach RetainCountchecker about IORegistryEntrySearchCFProperty returning retained objects. I know there is an SDK enhancement request for this to have the cf_returns_retained annotation, so this is just a stop gap. llvm-svn: 155887
-
John McCall authored
what I'm going to treat as basically universal properties of array-cookie code. Implement MS array cookies on top of that. Based on a patch by Timur Iskhodzhanov! llvm-svn: 155886
-
David Blaikie authored
Review by Doug Gregor. llvm-svn: 155880
-
John McCall authored
type-source information for its parameters. Don't crash when mangling them in the MS C++ ABI. Patch by Timur Iskhodzhanov! llvm-svn: 155879
-
Douglas Gregor authored
llvm-svn: 155878
-
Douglas Gregor authored
llvm-svn: 155877
-
Douglas Gregor authored
diagnostic, from Eitan Adler! llvm-svn: 155876
-
Douglas Gregor authored
llvm-svn: 155875
-
Douglas Gregor authored
llvm-svn: 155874
-
Douglas Gregor authored
Dmitri Gribenko! llvm-svn: 155872
-
Kaelyn Uhrain authored
llvm-svn: 155871
-
Kaelyn Uhrain authored
llvm-svn: 155870
-
David Blaikie authored
Similar to r155808 - this mistake has been made in a few iterators. Based on Chandler Carruth's feedback to r155808 I added an implicit conversion to Decl* to ease adoption/usage. Useful for the pointer comparison, but not the dyn_cast (due to template argument deduction causing the conversion not to be used) - there for future convenience, though. This idiom (op T* for iterators) seems to be fairly idiomatic within the LLVM codebase & I'll likely add it as I fix up the other iterators here. llvm-svn: 155869
-
John McCall authored
test for an invalid declaration at every single place in the constant evaluator that's about to request a struct layout. llvm-svn: 155868
-
Ted Kremenek authored
malloc size checker: Ignore const'ness of pointer types when determining of a sizeof() type is compatible with a pointed type. Fixes <rdar://problem/11292586>. llvm-svn: 155864
-
Douglas Gregor authored
llvm-svn: 155860
-
Douglas Gregor authored
clang_getCursorLexicalParent should return a translation unit cursor for declarations at the global scope, from Evan P. Fixes PR9083. llvm-svn: 155858
-
Richard Smith authored
being used in an exception specification in a way which isn't otherwise ill-formed in C++98: this warning also incorrectly triggered on uses of 'this' inside thread-safety attributes, and the mechanism required to tell these cases apart is more complex than can be justified by the (minimal) value of this part of -Wc++98-compat. llvm-svn: 155857
-
Argyrios Kyrtzidis authored
of a local variable, make sure we don't infinitely recurse when the reference binds to itself. e.g: int* func() { int& i = i; // assign non-exist variable to a reference which has same name. return &i; // return pointer } rdar://11345441 llvm-svn: 155856
-
Fariborz Jahanian authored
defined inside the objc class belong to class's decl. scope. This is to conform to objective-c rules. // rdar://11351299 llvm-svn: 155855
-
Argyrios Kyrtzidis authored
rdar://11289247 llvm-svn: 155849
-
Argyrios Kyrtzidis authored
calculating it recursively. boost::assign::tuple_list_of uses the trick of chaining call operator expressions in order to declare a "list of tuples", e.g: std::vector<tuple> v = boost::assign::tuple_list_of(1, "foo")(2, "bar")(3, "qqq"); Due to CXXOperatorCallExpr calculating its source range recursively we would get significant slowdowns with a large number of chained call operator expressions and the potential for stack overflow. rdar://11350116 llvm-svn: 155848
-
- Apr 30, 2012
-
-
Fariborz Jahanian authored
llvm-svn: 155843
-
Ted Kremenek authored
llvm-svn: 155842
-
Ted Kremenek authored
Reduce malloc() traffic of clang_getOverridenCursors() by using a pool of SmallVector<CXCursor> objects under the covers. Fixes <rdar://problem/11289160>. llvm-svn: 155841
-
David Blaikie authored
Reviewed by Doug Gregor. llvm-svn: 155839
-
David Blaikie authored
Apparently we weren't checking default arguments when they were instantiated. This adds the check, fixes the lack of instantiation caching (which seems like it was mostly implemented but just missed the last step), and avoids implementing non-dependent default args (for non-dependent parameter types) as uninstantiated default arguments (so that we don't warn once for every instantiation when it's not instantiation dependent). Reviewed by Richard Smith. llvm-svn: 155838
-