Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | teach the various targets what native integer types they have. | Chris Lattner | 2009-11-07 | 2 | -18/+19 | |
| | | | | llvm-svn: 86395 | |||||
* | Cope with calls to operator() templates. Fixes PR5419. | Douglas Gregor | 2009-11-07 | 1 | -1/+9 | |
| | | | | llvm-svn: 86387 | |||||
* | add missing #include | Chris Lattner | 2009-11-07 | 1 | -0/+1 | |
| | | | | llvm-svn: 86368 | |||||
* | Support -Wshorten-64-to-32 for integer types only, which seems to satisfy the | John McCall | 2009-11-07 | 1 | -0/+4 | |
| | | | | | | core requirements. Fixes rdar://problem/6389954 llvm-svn: 86364 | |||||
* | Improve -Wconversion by permitting binary operations on values of the target | John McCall | 2009-11-07 | 1 | -42/+129 | |
| | | | | | | type (or smaller) to stay "closed" within the type. llvm-svn: 86356 | |||||
* | Don't treat variables with non-trivial ctors or dtors as unused. Fixes PR5407. | Anders Carlsson | 2009-11-07 | 1 | -2/+16 | |
| | | | | llvm-svn: 86352 | |||||
* | Cleanup, no functionality change. | Anders Carlsson | 2009-11-07 | 1 | -4/+8 | |
| | | | | llvm-svn: 86351 | |||||
* | Always mangle functions with special names. Fixes PR5420. | Anders Carlsson | 2009-11-07 | 1 | -3/+5 | |
| | | | | llvm-svn: 86350 | |||||
* | When instantiating a field decl, make sure to clone its attributes. With ↵ | Anders Carlsson | 2009-11-07 | 1 | -0/+16 | |
| | | | | | | this change FileCheck no longer crashes when it's run without any arguments. llvm-svn: 86344 | |||||
* | Use SaveAndRestore to simplify logic in LiveVariables::runOnAllBlocks(). ↵ | Ted Kremenek | 2009-11-07 | 1 | -3/+3 | |
| | | | | | | Patch by Kovarththanan Rajaratnam! llvm-svn: 86343 | |||||
* | Switch clang-cc to use ApplyHeaderSearchOptions, and fix a thinko. | Daniel Dunbar | 2009-11-07 | 1 | -1/+1 | |
| | | | | llvm-svn: 86341 | |||||
* | When looking up and adding substitutions to the substitution table, make ↵ | Anders Carlsson | 2009-11-07 | 1 | -0/+3 | |
| | | | | | | sure to always use the canonical declaration. With tihs change, FileCheck compiles and links but crashes during startup. llvm-svn: 86339 | |||||
* | Add HeaderSearchOptions class, for packaging the information needed to | Daniel Dunbar | 2009-11-07 | 1 | -1/+31 | |
| | | | | | | initialize HeaderSearch. Not used yet. llvm-svn: 86338 | |||||
* | Lift InitHeaderSearch::AddEnvVarPaths logic higher. | Daniel Dunbar | 2009-11-07 | 1 | -25/+9 | |
| | | | | llvm-svn: 86337 | |||||
* | Formatting fixes. | Daniel Dunbar | 2009-11-07 | 1 | -4/+4 | |
| | | | | llvm-svn: 86336 | |||||
* | Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fix | Daniel Dunbar | 2009-11-07 | 1 | -5/+6 | |
| | | | | | | | | filenames. Also, move InitializePreprocessor to Utils.h. llvm-svn: 86335 | |||||
* | Remove Checker::CheckType() (and instead using ↵ | Ted Kremenek | 2009-11-07 | 2 | -115/+70 | |
| | | | | | | CheckerVisitor::PreVisitDeclStmt()), and refactor VLASizeChecker to have only one Checker subclass (not two) and to not use the node builders directly (and instead use the newer CheckerContext). llvm-svn: 86329 | |||||
* | Implement -Wconversion. Off by default, in the non-gcc group. There's | John McCall | 2009-11-07 | 2 | -8/+226 | |
| | | | | | | significant work left to be done to reduce the false-positive rate here. llvm-svn: 86326 | |||||
* | Add basic code completion support for ObjC messages. | Steve Naroff | 2009-11-07 | 3 | -0/+120 | |
| | | | | | | Still a work in progress... llvm-svn: 86323 | |||||
* | Revert r86315 and add Type::FixedWidthInt to the FIXME cases. | Anders Carlsson | 2009-11-07 | 1 | -0/+2 | |
| | | | | llvm-svn: 86320 | |||||
* | Do not assert if debug info for certain type is not generated. | Devang Patel | 2009-11-07 | 1 | -1/+0 | |
| | | | | llvm-svn: 86315 | |||||
* | Do not emit linkage name for global variables. It confuses gdb, because it ↵ | Devang Patel | 2009-11-07 | 1 | -1/+3 | |
| | | | | | | picks up AT_MIPS_linkage_name and ignores AT_name. llvm-svn: 86308 | |||||
* | Make sure isCopyAssignment is only true for actual copy assignment operators, | Eli Friedman | 2009-11-07 | 2 | -1/+3 | |
| | | | | | | | | instead of all assignment operators. The mistake messes up IRGen because it ends up assuming that the assignment operator is actually the implicit copy assignment operator, and therefore tries to emit the RHS as an lvalue. llvm-svn: 86307 | |||||
* | Various improvements to Clang's code-completion infrastructure: | Douglas Gregor | 2009-11-07 | 2 | -53/+533 | |
| | | | | | | | | | | | | | | - Introduce more code-completion string "chunk" kinds that describe symbols, the actual text that the user is expected to type, etc. - Make the generation of macro results optional, since it can be slow - Make code-completion accessible through the C API, marshalling the code-completion results through a temporary file (ick) to maintain process separation. The last doesn't have tests yet. llvm-svn: 86306 | |||||
* | Refine the non-virtual this adjustment. Optimize out virtual this | Mike Stump | 2009-11-06 | 1 | -43/+57 | |
| | | | | | | adjustments of zero. llvm-svn: 86300 | |||||
* | Since default writable attribute is 'assign', allow | Fariborz Jahanian | 2009-11-06 | 1 | -2/+1 | |
| | | | | | | | | | | specification of 'assign' (no warning to be issued), when a continuation class makes a 'readonly' attribute 'readwrite' but also specifies the 'assign' attribute. (this matches gcc's behavior and prevents exessive warnings)/ llvm-svn: 86297 | |||||
* | Make the VLASizeChecker implementation private, and its creation only known ↵ | Ted Kremenek | 2009-11-06 | 3 | -11/+38 | |
| | | | | | | to GRExprEngineInternalChecks.cpp. llvm-svn: 86292 | |||||
* | Fix a bogus objective-c warning with -pedantic. | Fariborz Jahanian | 2009-11-06 | 1 | -0/+2 | |
| | | | | | | (radar 7370882). llvm-svn: 86291 | |||||
* | Make the implementation of DivZeroChecker private. | Ted Kremenek | 2009-11-06 | 3 | -9/+27 | |
| | | | | llvm-svn: 86288 | |||||
* | Prevent a code gen. crash on empty unions - pr5408. | Fariborz Jahanian | 2009-11-06 | 1 | -1/+5 | |
| | | | | llvm-svn: 86287 | |||||
* | Sentence-case bug type, and pull tests from region-only-test.c into ↵ | Ted Kremenek | 2009-11-06 | 1 | -5/+14 | |
| | | | | | | misc-ps-region.store.m (removing an extra unneeded test file). Also add a bunch of FIXME comments for future enhancements. llvm-svn: 86282 | |||||
* | Simplify the debug info code, handle lvalue references and template ↵ | Anders Carlsson | 2009-11-06 | 2 | -13/+35 | |
| | | | | | | specializations. llvm-svn: 86277 | |||||
* | This patch fixes code gen. part of pr5333 (Conversion | Fariborz Jahanian | 2009-11-06 | 1 | -1/+3 | |
| | | | | | | using elipsis conversion). llvm-svn: 86276 | |||||
* | Handle QualifiedNameType and SubstTemplateTypeParmType types in ↵ | Anders Carlsson | 2009-11-06 | 1 | -0/+11 | |
| | | | | | | CGDebugInfo::CreateTypeNode. llvm-svn: 86274 | |||||
* | Don't assert when trying to generate debug info for vector types. This needs ↵ | Anders Carlsson | 2009-11-06 | 1 | -0/+4 | |
| | | | | | | to be fixed eventually... llvm-svn: 86268 | |||||
* | Don't warn -Wsign-compare if we're in an unevaluated context, and fixed | John McCall | 2009-11-06 | 1 | -0/+4 | |
| | | | | | | a typo pointed out by Fariborz. llvm-svn: 86265 | |||||
* | update comment, pointed out by Gabor | Chris Lattner | 2009-11-06 | 1 | -3/+1 | |
| | | | | llvm-svn: 86263 | |||||
* | add some const qualifiers, patch by Kovarththanan Rajaratnam! | Chris Lattner | 2009-11-06 | 1 | -2/+2 | |
| | | | | llvm-svn: 86260 | |||||
* | indirectbr seems to work! Rip out the old code. | Chris Lattner | 2009-11-06 | 5 | -140/+0 | |
| | | | | llvm-svn: 86256 | |||||
* | Instead of returning a null DIType for unhandled types, assert. | Anders Carlsson | 2009-11-06 | 1 | -9/+1 | |
| | | | | llvm-svn: 86254 | |||||
* | Add a checker for CWE-466: Return of Pointer Value Outside of Expected Range. | Zhongxing Xu | 2009-11-06 | 4 | -0/+89 | |
| | | | | llvm-svn: 86252 | |||||
* | compare.c also needs a target triple now, and improve some comments while we're | John McCall | 2009-11-06 | 1 | -7/+7 | |
| | | | | | | at it. llvm-svn: 86243 | |||||
* | Improve the -Wsign-compare heuristics: | John McCall | 2009-11-06 | 2 | -5/+37 | |
| | | | | | | | | | | | | | * If the unsigned type is smaller than the signed type, never warn, because its value will not change when zero-extended to the larger type. * If we're testing for (in)equality, and the unsigned value is an integer constant whose sign bit is not set, never warn, because even though the signed value might change, it can't affect the result of the equality. Also make the comparison test cases much more rigorous, and have them expose the subtle differences between C and C++ here. llvm-svn: 86242 | |||||
* | add some fixit hints. | Chris Lattner | 2009-11-06 | 2 | -2/+4 | |
| | | | | llvm-svn: 86240 | |||||
* | Rework the fix-it hint for code like | Douglas Gregor | 2009-11-06 | 1 | -12/+32 | |
| | | | | | | | | | | | get_origin->x where get_origin is actually a function and the user has forgotten the parentheses. Instead of giving a lame note for the fix-it, give a full-fledge error, early, then build the call expression to try to recover. llvm-svn: 86238 | |||||
* | Improve recovery when we fail to parse the operand of a C++ named cast. ↵ | Douglas Gregor | 2009-11-06 | 1 | -7/+1 | |
| | | | | | | Fixes PR5210 llvm-svn: 86234 | |||||
* | If a member variable of reference type is bound to a temporary in its member ↵ | Anders Carlsson | 2009-11-06 | 1 | -0/+5 | |
| | | | | | | initializer it needs to be destroyed at the end of the constructor. llvm-svn: 86230 | |||||
* | If a member initializer create temporaries we need to destroy them. Fixes ↵ | Anders Carlsson | 2009-11-06 | 1 | -0/+7 | |
| | | | | | | PR5077. llvm-svn: 86225 | |||||
* | More cleanup. | Anders Carlsson | 2009-11-06 | 1 | -73/+94 | |
| | | | | llvm-svn: 86224 | |||||
* | Cleanup ctor/dtor emission. | Anders Carlsson | 2009-11-06 | 1 | -11/+12 | |
| | | | | llvm-svn: 86222 |