- Apr 04, 2012
-
-
Ted Kremenek authored
Include the "issue context" (e.g. function or method) where a static analyzer issue occurred in the plist output. Fixes <rdar://problem/11004527> llvm-svn: 154030
-
Douglas Gregor authored
number + context) to the point where we initially start defining the lambda, so that the linkage won't change when that information is made available. Fixes the assertion in <rdar://problem/11182962>. Plus, actually mangle the context of lambdas properly. llvm-svn: 154029
-
Fariborz Jahanian authored
of extern "C". // rdar://11169733 llvm-svn: 154025
-
Bob Wilson authored
llvm-svn: 154018
-
NAKAMURA Takumi authored
It seems JSON parser doesn't like path separator '\' on Win32 hosts. llvm-svn: 154017
-
NAKAMURA Takumi authored
llvm-svn: 154016
-
NAKAMURA Takumi authored
$ENV{PWD} is not expected to be set on all hosts. llvm-svn: 154015
-
David Chisnall authored
Don't crash (assert failure) when generating blocks for C++ types with a non-const copy constructor. This was caused by the code deciding the number of fields in the byref structure using a different test to the part of the code creating the GEPs into said structure. llvm-svn: 154013
-
Manuel Klimek authored
llvm-svn: 154012
-
Benjamin Kramer authored
llvm-svn: 154010
-
Manuel Klimek authored
can be integration tested. llvm-svn: 154009
-
Manuel Klimek authored
Provides an API to run clang tools (FrontendActions) as standalone tools, or repeatedly in-memory in a process. This is useful for unit-testing, map-reduce style applications, source transformation daemons or command line tools. The ability to run over multiple translation units with different command line arguments enables building up refactoring tools that need to apply transformations across translation unit boundaries. See tools/clang-check/ClangCheck.cpp for an example. llvm-svn: 154008
-
Benjamin Kramer authored
llvm-svn: 154005
-
Bob Wilson authored
llvm-svn: 154001
-
Richard Smith authored
No test updates: we don't appear to have any test coverage for these diagnostics! llvm-svn: 154000
-
Richard Smith authored
a type specifier and can be combined with unsigned. This allows libstdc++4.7 to be used with clang in c++98 mode. Several other changes are still required for libstdc++4.7 to work with clang in c++11 mode. llvm-svn: 153999
-
Douglas Gregor authored
be sure to perform the argument type adjustments in [temp.deduct.call]p2, e.g., array decay. And, when performing these deductions in the context of 'auto', make sure that we're deducing the P' in std::initializer_list<P'> rather than the whole initializer list. Together, this makes code like for( auto s : {"Deferred", "New", "Open", "Review"}) { } work properly. llvm-svn: 153998
-
Douglas Gregor authored
list-initialization. Loosen an over-eager assertion to fix PR12453. llvm-svn: 153995
-
Argyrios Kyrtzidis authored
cached during the non-cached lex, otherwise we are going to drop them. Fixes a bogus "_Pragma takes a parenthesized string literal" error when expanding consecutive _Pragmas in a macro argument. Part of rdar://11168596 llvm-svn: 153994
-
John McCall authored
for converting an empty list to a scalar, be sure to initialize the source and destination types so that comparison of conversion sequences will work in case there are multiple viable candidates. llvm-svn: 153993
-
Nick Lewycky authored
keep the latter. No test. This was noticed when poking around something else with GDB. I'm not able to figure out a testcase that would break due to this bug. Sorry. llvm-svn: 153992
-
John McCall authored
patch by Timur Iskhodzhanov. llvm-svn: 153990
-
John McCall authored
statement-expressions. Prevents cleanups and such from being claimed by the first full-expression in the block. llvm-svn: 153989
-
Ted Kremenek authored
llvm-svn: 153988
-
Ted Kremenek authored
console, and leave it up to PathDiagnosticConsumer to unique reports with the shortest path. llvm-svn: 153987
-
Ted Kremenek authored
llvm-svn: 153986
-
Ted Kremenek authored
llvm-svn: 153985
-
Douglas Gregor authored
for templates with local template arguments, from Michel Morin! Fixes PR12337. llvm-svn: 153983
-
-
- Apr 03, 2012
-
-
Nick Lewycky authored
a view over the contents of a DeclContext without exposing the implementation details of the StoredDeclsMap. Use this in LookupVisibleDecls to find the visible declarations. Fixes PR12339! llvm-svn: 153970
-
Nick Lewycky authored
looking up visible decls. llvm-svn: 153967
-
Kaelyn Uhrain authored
Infinite recursion was happening when DiagnoseInvalidRedeclaration called ActOnFunctionDeclarator to check if a typo correction works when the correction was just to the nested-name-specifier because the wrong DeclContext was being passed in. Unlike a number of functions surrounding typo correction, the DeclContext passed in for a function is the context of the function name after applying any nested name specifiers, not the lexical DeclContext where the function+nested-name-specifier appears. llvm-svn: 153962
-
Fariborz Jahanian authored
// rdar://11169733 llvm-svn: 153960
-
Argyrios Kyrtzidis authored
If we are pre-expanding a macro argument don't actually "activate" the pragma at that point, activate the pragma whenever we encounter it again in the token stream. This ensures that we will activate it in the correct location or that we will ignore it if it never enters the token stream, e.g: \#define EMPTY(x) \#define INACTIVE(x) EMPTY(x) INACTIVE(_Pragma("clang diagnostic ignored \"-Wconversion\"")) This also fixes the crash in rdar://11168596. llvm-svn: 153959
-
Ted Kremenek authored
Rework ProgramPoint to bit-mangle the 'Kind' into both Data pointers and the LocationContext. After switching to PointerIntPair, it didn't look like a safe assumption to use the lower 3 bits of the LocationContext* field. Thanks to Jordy Rose and Benjamin Kramer for their feedback. llvm-svn: 153933
-
Anna Zaks authored
Store this info inside the function summary generated for all analyzed functions. This is useful for coverage stats and can be helpful for analyzer state space search strategies. llvm-svn: 153923
-
Eric Christopher authored
Patch by Jack Carter. Testcase cleanup by me. llvm-svn: 153921
-
Eric Christopher authored
property file/line rather than the @synthesize file/line. Avoids some nasty confusing-ness with conflating the file from the scope and the line from the original declaration. Use the current scope location as a separate parameter so that we can match it up better in the line table with the beginning of the scope. Update a couple of testcases accordingly since I had to change that we actually use the passed in location in EmitFunctionStart and for the new metadata parameter and add a new testcase to make sure we've got the right line numbers for synthesized properties. Part of rdar://11026482 llvm-svn: 153917
-
Ted Kremenek authored
Fix another false positive in RegionStore involving doing loads from symbolic offsets. We still don't properly reason about such accesses, but we shouldn't emit bogus "uninitialized value" warnings either. Fixes <rdar://problem/11127008>. llvm-svn: 153913
-
- Apr 02, 2012
-
-
Ted Kremenek authored
Fix potential null dereference in the static analyzer when inlining a call that has already been inlined. Unfortunately I have no test case. llvm-svn: 153900
-