summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* When checking the namespace of a redeclaration or definition, look through ↵Sebastian Redl2009-11-081-11/+16
| | | | | | linkage specs. Fixes PR5430. llvm-svn: 86461
* Don't reprocess non-dependent initializers of non-dependent VarDecls. Fixes ↵Sebastian Redl2009-11-081-0/+9
| | | | | | PR5426. llvm-svn: 86460
* Fix for FreeBSD toolchain in regards to CPP, Credit to Roman Divacky.Edward O'Callaghan2009-11-081-0/+4
| | | | llvm-svn: 86459
* Add clarifying parens.Daniel Dunbar2009-11-081-1/+1
| | | | llvm-svn: 86457
* Test commit - minor terminology change to my recent patch suggested by John ↵Alexis Hunt2009-11-082-6/+6
| | | | | | McCall llvm-svn: 86442
* Always make sure we're using an unqualified type when building aDouglas Gregor2009-11-081-2/+2
| | | | | | constructor name. Fixes PR5418. llvm-svn: 86441
* Handle member expressions where the member declaration is actually a static ↵Anders Carlsson2009-11-071-0/+3
| | | | | | variable. Fixes PR5392. llvm-svn: 86414
* More LValue related code cleanup.Anders Carlsson2009-11-071-18/+27
| | | | llvm-svn: 86413
* More cleanup, the code is much easier to follow now.Anders Carlsson2009-11-071-24/+11
| | | | llvm-svn: 86412
* Reduce nesting, no functionality change.Anders Carlsson2009-11-071-18/+20
| | | | llvm-svn: 86411
* We only need to call SetObjCNonGC for local variables. No functionality change.Anders Carlsson2009-11-071-3/+3
| | | | llvm-svn: 86410
* Change EmitPointerToDataMemberLValue to take a FieldDecl. No intended ↵Anders Carlsson2009-11-072-5/+5
| | | | | | functionality change. llvm-svn: 86407
* Patch to gives an error that at least points users in the direction of the ↵Fariborz Jahanian2009-11-072-0/+27
| | | | | | | | error, rather than an error about incompatible types. Patch by Sean Hunt. llvm-svn: 86402
* 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
OpenPOWER on IntegriCloud