- Mar 12, 2011
-
-
Ted Kremenek authored
This checker was created by Jim Goodnow II, and I migrated it to the new Checker interface (recent changes by Argiris). llvm-svn: 127525
-
Ted Kremenek authored
llvm-svn: 127524
-
Ted Kremenek authored
llvm-svn: 127523
-
Douglas Gregor authored
should be resolvable, from Faisal Vali! llvm-svn: 127521
-
Douglas Gregor authored
enumeration type to another in C, classify enumeration constants as if they had the type of their enclosing enumeration. Fixes <rdar://problem/9116337>. llvm-svn: 127514
-
Ken Dyck authored
functionality intended. llvm-svn: 127513
-
Douglas Gregor authored
unless we already know that it has a definition. Fixes PR9449/<rdar://problem/9115785>. llvm-svn: 127512
-
Douglas Gregor authored
headers, which use C++0x generalized initializer lists. Per PR7069, it appears that the only use is as the return type of a function, so this commit enables this extension just in that narrow case. If it's enough for libstdc++ 4.5, or if it can be trivially extended to work with libstdc++ 4.5, we'll keep it. Otherwise, or if this breaks anything, we'll revert and wait for the real feature. llvm-svn: 127507
-
- Mar 11, 2011
-
-
John McCall authored
llvm-svn: 127494
-
Peter Collingbourne authored
without cl_khr_fp64, warn and cast to single precision llvm-svn: 127476
-
Peter Collingbourne authored
extending the existing support for sizeof and alignof. Original patch by Guy Benyei. llvm-svn: 127475
-
Rafael Espindola authored
in conversion functions. llvm-svn: 127460
-
John McCall authored
pointer instead of the other operand. llvm-svn: 127458
-
Ken Dyck authored
avoid converting to bits and back again. No change in functionality intended. llvm-svn: 127455
-
Ken Dyck authored
parameter to tidy up the places where the expression is a size. llvm-svn: 127454
-
- Mar 10, 2011
-
-
Ted Kremenek authored
Profiling showed that 'CheckImplicitConversions' was very slow because of the call to getSpellingLoc(). On 'aes.c' in the LLVM test suite, this function was consuming 7.4% of -fsyntax-only time. This change fixes this issue by delaying the check that the warning would be issued within a system macro by as long as possible. The main negative of this change is now the logic for this check is done in multiple places in this function instead of just in one place up front. llvm-svn: 127425
-
NAKAMURA Takumi authored
lib/CodeGen/CGCall.cpp: Don't invoke multiple Builder.CreateBitCast() on Builder.CreateMemCpy. Or we would see sideeffect incompatibility among gcc and clang. llvm-svn: 127405
-
Abramo Bagnara authored
llvm-svn: 127404
-
Abramo Bagnara authored
llvm-svn: 127401
-
Ted Kremenek authored
When doing reachability analysis for warnings issued under DiagRuntimeBehavior, don't construct a ParentMap or CFGStmtMap. Instead, create a small set of Stmt* -> CFGBlock* mappings during CFG construction for only the statements we care about relating to the diagnostics we want to check for reachability. llvm-svn: 127396
-
Ken Dyck authored
type. llvm-svn: 127391
-
Ken Dyck authored
llvm-svn: 127390
-
Ted Kremenek authored
Require AddStmtChoice::alwaysAdd() to take a CFGBuilder& and Stmt*. Prep for functionality changes. llvm-svn: 127387
-
Ted Kremenek authored
llvm-svn: 127386
-
Ted Kremenek authored
Rework interaction between AnalysisContext and CFG::BuildOptions to keep a BuildOptions object around instead of keeping a copy of the flags. Moreover, change AnalysisContext to use an OwningPtr for created analysis objects instead of directly managing them. Finally, add a 'forcedBlkExprs' entry to CFG::BuildOptions that will be used by the CFGBuilder to force specific expressions to be block-level expressions. llvm-svn: 127385
-
Daniel Dunbar authored
a...", it appears to cause us to reject various valid codes. llvm-svn: 127373
-
Argyrios Kyrtzidis authored
llvm-svn: 127370
-
- Mar 09, 2011
-
-
Fariborz Jahanian authored
list of protocols as well. // rdar://9078584 llvm-svn: 127367
-
Argyrios Kyrtzidis authored
llvm-svn: 127360
-
Fariborz Jahanian authored
to avoid a bogus warning. // rdar:// 9072298 llvm-svn: 127355
-
Argyrios Kyrtzidis authored
Introduce '-chain-include' option to specify headers that will be converted to chained PCHs in memory without having to use multiple runs and intermediate files. Intended for testing & debugging of chained PCH. llvm-svn: 127339
-
Abramo Bagnara authored
llvm-svn: 127330
-
John McCall authored
llvm-svn: 127324
-
John McCall authored
recomputation. llvm-svn: 127322
-
John McCall authored
llvm-svn: 127319
-
Anders Carlsson authored
When deserializing CXXBaseSpecifiers (and offsets), make sure to walk the chain in the correct order. llvm-svn: 127315
-
John McCall authored
simplify the logic of initializing function parameters so that we don't need both a variable declaration and a type in FunctionArgList. This also means that we need to propagate the CGFunctionInfo down in a lot of places rather than recalculating it from the FAL. There's more we can do to eliminate redundancy here, and I've left FIXMEs behind to do it. llvm-svn: 127314
-
John McCall authored
K&R-style default argument promotion. llvm-svn: 127313
-
Ted Kremenek authored
llvm-svn: 127291
-
Argyrios Kyrtzidis authored
should report the original file name for contents of files that were overriden by other files, otherwise it should report the name of the new file. Default is true. Also add similar field in PreprocessorOptions and pass similar parameter in ASTUnit::LoadFromCommandLine. llvm-svn: 127289
-