summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* teach the various targets what native integer types they have.Chris Lattner2009-11-072-18/+19
| | | | llvm-svn: 86395
* Cope with calls to operator() templates. Fixes PR5419.Douglas Gregor2009-11-071-1/+9
| | | | llvm-svn: 86387
* add missing #includeChris Lattner2009-11-071-0/+1
| | | | llvm-svn: 86368
* Support -Wshorten-64-to-32 for integer types only, which seems to satisfy theJohn McCall2009-11-071-0/+4
| | | | | | core requirements. Fixes rdar://problem/6389954 llvm-svn: 86364
* Improve -Wconversion by permitting binary operations on values of the targetJohn McCall2009-11-071-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 Carlsson2009-11-071-2/+16
| | | | llvm-svn: 86352
* Cleanup, no functionality change.Anders Carlsson2009-11-071-4/+8
| | | | llvm-svn: 86351
* Always mangle functions with special names. Fixes PR5420.Anders Carlsson2009-11-071-3/+5
| | | | llvm-svn: 86350
* When instantiating a field decl, make sure to clone its attributes. With ↵Anders Carlsson2009-11-071-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 Kremenek2009-11-071-3/+3
| | | | | | Patch by Kovarththanan Rajaratnam! llvm-svn: 86343
* Switch clang-cc to use ApplyHeaderSearchOptions, and fix a thinko.Daniel Dunbar2009-11-071-1/+1
| | | | llvm-svn: 86341
* When looking up and adding substitutions to the substitution table, make ↵Anders Carlsson2009-11-071-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 toDaniel Dunbar2009-11-071-1/+31
| | | | | | initialize HeaderSearch. Not used yet. llvm-svn: 86338
* Lift InitHeaderSearch::AddEnvVarPaths logic higher.Daniel Dunbar2009-11-071-25/+9
| | | | llvm-svn: 86337
* Formatting fixes.Daniel Dunbar2009-11-071-4/+4
| | | | llvm-svn: 86336
* Rename PreprocessorInitOptions to PreprocessorOptions for consistency, and fixDaniel Dunbar2009-11-071-5/+6
| | | | | | | | filenames. Also, move InitializePreprocessor to Utils.h. llvm-svn: 86335
* Remove Checker::CheckType() (and instead using ↵Ted Kremenek2009-11-072-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'sJohn McCall2009-11-072-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 Naroff2009-11-073-0/+120
| | | | | | Still a work in progress... llvm-svn: 86323
* Revert r86315 and add Type::FixedWidthInt to the FIXME cases.Anders Carlsson2009-11-071-0/+2
| | | | llvm-svn: 86320
* Do not assert if debug info for certain type is not generated.Devang Patel2009-11-071-1/+0
| | | | llvm-svn: 86315
* Do not emit linkage name for global variables. It confuses gdb, because it ↵Devang Patel2009-11-071-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 Friedman2009-11-072-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 Gregor2009-11-072-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 thisMike Stump2009-11-061-43/+57
| | | | | | adjustments of zero. llvm-svn: 86300
* Since default writable attribute is 'assign', allowFariborz Jahanian2009-11-061-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 Kremenek2009-11-063-11/+38
| | | | | | to GRExprEngineInternalChecks.cpp. llvm-svn: 86292
* Fix a bogus objective-c warning with -pedantic.Fariborz Jahanian2009-11-061-0/+2
| | | | | | (radar 7370882). llvm-svn: 86291
* Make the implementation of DivZeroChecker private.Ted Kremenek2009-11-063-9/+27
| | | | llvm-svn: 86288
* Prevent a code gen. crash on empty unions - pr5408.Fariborz Jahanian2009-11-061-1/+5
| | | | llvm-svn: 86287
* Sentence-case bug type, and pull tests from region-only-test.c into ↵Ted Kremenek2009-11-061-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 Carlsson2009-11-062-13/+35
| | | | | | specializations. llvm-svn: 86277
* This patch fixes code gen. part of pr5333 (ConversionFariborz Jahanian2009-11-061-1/+3
| | | | | | using elipsis conversion). llvm-svn: 86276
* Handle QualifiedNameType and SubstTemplateTypeParmType types in ↵Anders Carlsson2009-11-061-0/+11
| | | | | | CGDebugInfo::CreateTypeNode. llvm-svn: 86274
* Don't assert when trying to generate debug info for vector types. This needs ↵Anders Carlsson2009-11-061-0/+4
| | | | | | to be fixed eventually... llvm-svn: 86268
* Don't warn -Wsign-compare if we're in an unevaluated context, and fixedJohn McCall2009-11-061-0/+4
| | | | | | a typo pointed out by Fariborz. llvm-svn: 86265
* update comment, pointed out by GaborChris Lattner2009-11-061-3/+1
| | | | llvm-svn: 86263
* add some const qualifiers, patch by Kovarththanan Rajaratnam!Chris Lattner2009-11-061-2/+2
| | | | llvm-svn: 86260
* indirectbr seems to work! Rip out the old code.Chris Lattner2009-11-065-140/+0
| | | | llvm-svn: 86256
* Instead of returning a null DIType for unhandled types, assert.Anders Carlsson2009-11-061-9/+1
| | | | llvm-svn: 86254
* Add a checker for CWE-466: Return of Pointer Value Outside of Expected Range.Zhongxing Xu2009-11-064-0/+89
| | | | llvm-svn: 86252
* compare.c also needs a target triple now, and improve some comments while we'reJohn McCall2009-11-061-7/+7
| | | | | | at it. llvm-svn: 86243
* Improve the -Wsign-compare heuristics:John McCall2009-11-062-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 Lattner2009-11-062-2/+4
| | | | llvm-svn: 86240
* Rework the fix-it hint for code likeDouglas Gregor2009-11-061-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 Gregor2009-11-061-7/+1
| | | | | | Fixes PR5210 llvm-svn: 86234
* If a member variable of reference type is bound to a temporary in its member ↵Anders Carlsson2009-11-061-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 Carlsson2009-11-061-0/+7
| | | | | | PR5077. llvm-svn: 86225
* More cleanup.Anders Carlsson2009-11-061-73/+94
| | | | llvm-svn: 86224
* Cleanup ctor/dtor emission.Anders Carlsson2009-11-061-11/+12
| | | | llvm-svn: 86222
OpenPOWER on IntegriCloud