summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Parsing and AST support for using declarations, from John Thompson!Douglas Gregor2009-06-2018-15/+275
| | | | llvm-svn: 73812
* Add -fblocksDouglas Gregor2009-06-201-2/+2
| | | | llvm-svn: 73804
* Added writing and reading of the ConstQualAdded flag ofFariborz Jahanian2009-06-202-0/+2
| | | | | | BlockDeclRefExpr to PCH. llvm-svn: 73800
* Keep track of when declarations are "used" according to C andDouglas Gregor2009-06-1920-30/+243
| | | | | | | | | | | | C++. This logic is required to trigger implicit instantiation of function templates and member functions of class templates, which will be implemented separately. This commit includes support for -Wunused-parameter, printing warnings for named parameters that are not used within a function/Objective-C method/block. Fixes <rdar://problem/6505209>. llvm-svn: 73797
* Use QualType to represent block's implicit return type asFariborz Jahanian2009-06-195-14/+54
| | | | | | to not lose its 'const/volatile' qualifier. llvm-svn: 73795
* Patch for implementation of C++'s object model. This isFariborz Jahanian2009-06-197-5/+192
| | | | | | work in progress. llvm-svn: 73782
* Remove more GetSVal/GetLValue methods in GRExprEngine/GRState, insteadTed Kremenek2009-06-193-189/+163
| | | | | | | preferring to use their replacements in GRState. This further unifies the code paths for such logic and leads to some code reduction. llvm-svn: 73771
* Fix bug in the new PCHReader constructor. PP and Context should be ↵Argyrios Kyrtzidis2009-06-191-1/+1
| | | | | | initialized to 0. llvm-svn: 73762
* Tiny correction on the command-line source location parser.Argyrios Kyrtzidis2009-06-191-1/+1
| | | | llvm-svn: 73758
* A further step of r73690: associate the cast-to type with the created symbol,Zhongxing Xu2009-06-194-10/+22
| | | | | | | because the type of the symbol is used to create the default range. We need the sign to be consistent. llvm-svn: 73756
* If the SymbolicRegion was cast to another type, use that type to create the Zhongxing Xu2009-06-192-3/+18
| | | | | | ElementRegion. llvm-svn: 73754
* Make changes to PCHReader to allow reading a PCH file without having a ↵Argyrios Kyrtzidis2009-06-192-343/+564
| | | | | | | | | | pre-initialized Preprocessor. -Introduce 'PCHReaderListener' which is an abstract interface for getting various information from the PCHReader. -If PCHReader is constructed without a Preprocessor, it can still load the file and invoke the callbacks of PCHReaderListener. -If PCHReader is constructed with an initialized Preprocessor, PCHValidator is used as a PCHReaderListener to validate the contents of the PCH file against the given Preprocessor. llvm-svn: 73741
* Move clients over from using GRStateManager::BindXXX and friends toTed Kremenek2009-06-1813-100/+80
| | | | | | GRState->bindXXX and friends (and constify some arguments along the way). llvm-svn: 73740
* Remove GRStateManager& field from SimpleConstraintManager.Ted Kremenek2009-06-184-26/+12
| | | | llvm-svn: 73735
* libAnalysis:Ted Kremenek2009-06-1811-459/+368
| | | | | | | | | - Remove the 'isFeasible' flag from all uses of 'Assume'. - Remove the 'Assume' methods from GRStateManager. Now the only way to create a new GRState with an assumption is to use the new 'assume' methods in GRState. llvm-svn: 73731
* Some cleanups suggested by ChrisDouglas Gregor2009-06-184-22/+22
| | | | llvm-svn: 73713
* Move the static DeclAttrs map into ASTContext. Fixes <rdar://problem/6983177>.Douglas Gregor2009-06-1834-249/+266
| | | | llvm-svn: 73702
* Add some missing CMake dependenciesDouglas Gregor2009-06-182-0/+4
| | | | llvm-svn: 73700
* Modify test case comments.Zhongxing Xu2009-06-181-5/+2
| | | | llvm-svn: 73691
* When casting region, if we do not create an element region, record the cast-to Zhongxing Xu2009-06-184-9/+38
| | | | | | | | | type. When retrieving the region value, if we are going to create a symbol value, use the cast-to type if possible. llvm-svn: 73690
* Fix a crash that can occur when a #pragma handler eats to the end of theChris Lattner2009-06-181-1/+1
| | | | | | | | line, and when the pragma is at the end of a file. In this case, the last token consumed could pop the lexer, invalidating CurPPLexer. Thanks to Peter Thoman for pointing it out. llvm-svn: 73689
* More GRStateRef removal fix.Zhongxing Xu2009-06-181-4/+2
| | | | llvm-svn: 73674
* Add a target triple to a couple of tests which depend on it. Reported Eli Friedman2009-06-182-3/+3
| | | | | | by Mark Cianciosa on cfe-dev. llvm-svn: 73672
* Remove GRStateRef.Ted Kremenek2009-06-183-155/+11
| | | | llvm-svn: 73670
* Remove more dependencies on GRStateRef. As a consequence, we can nowTed Kremenek2009-06-184-137/+140
| | | | | | | pretty-print a GRState object anywhere it is referenced (instead of needing a GRStateRef of a GRStateManager handy). llvm-svn: 73669
* Remove another dependency on GRStateRef.Ted Kremenek2009-06-182-10/+47
| | | | llvm-svn: 73667
* Diagnose class members that shadow a template parameter. FixesDouglas Gregor2009-06-175-3/+25
| | | | | | | | | | <rdar://problem/6952203>. To do this, we actually remove a not-quite-correct optimization in the C++ name lookup routines. We'll revisit this optimization for the general case once more C++ is working. llvm-svn: 73659
* Fix regression testing in Xcode, againDouglas Gregor2009-06-171-1/+5
| | | | llvm-svn: 73658
* Fix some erroneous comments due to trigger-happy copy&paste.Argyrios Kyrtzidis2009-06-171-5/+2
| | | | | | No functionality change. llvm-svn: 73657
* Factor out some common code into ↵Argyrios Kyrtzidis2009-06-174-27/+34
| | | | | | Sema::EnterDeclaratorContext/ExitDeclaratorContext. llvm-svn: 73655
* Implement correct name lookup inside an initializer of a C++ class static ↵Argyrios Kyrtzidis2009-06-175-1/+86
| | | | | | | | data member. Fixes "test/CXX/basic/basic.lookup/basic.lookup.unqual/p13.cpp" test case. llvm-svn: 73652
* Move CXXMethodDecl::OutOfLineDefinition into Decl::OutOfLine.Argyrios Kyrtzidis2009-06-175-10/+10
| | | | llvm-svn: 73651
* Removed deadcode related to addition of constructorFariborz Jahanian2009-06-172-29/+21
| | | | | | decls to a class. llvm-svn: 73650
* First step toward fixing <rdar://problem/6613046> refactor clang objc type ↵Steve Naroff2009-06-1719-134/+194
| | | | | | | | | | | | representation. Add a type (ObjCObjectPointerType) and remove a type (ObjCQualifiedIdType). This large/tedious patch is just a first step. Next step is to remove ObjCQualifiedInterfaceType. After that, I will remove the magic TypedefType for 'id' (installed by Sema). This work will enable various simplifications throughout clang (when dealing with ObjC types). No functionality change. llvm-svn: 73649
* Remove more uses of GRStateRef.Ted Kremenek2009-06-174-40/+85
| | | | llvm-svn: 73648
* Class 'Environment' no longer should subclass llvm::FoldingSetNode.Ted Kremenek2009-06-171-2/+1
| | | | | | | Environment hasn't been uniqued in a FoldingSet for some time, so this was just wasting a pointer in GRState. llvm-svn: 73645
* Start moving in the direction of removing GRStateRef. Now eachTed Kremenek2009-06-175-285/+360
| | | | | | | | GRState object has a direct reference to its GRStateManager, making the functionality of GRStateRef redunandant. This will lead to some nice API cleanup and code shrinking across libAnalysis. llvm-svn: 73644
* Support dependent extended vector types and template instantiationDouglas Gregor2009-06-1716-60/+258
| | | | | | thereof. Patch by Anders Johnsen! llvm-svn: 73641
* Testing improvements:Daniel Dunbar2009-06-172-27/+121
| | | | | | | | | | | | | | - Make python test runner force COLUMNS=0 to increase determinism. - Substitute clang-cc as we do for clang. - Improved detection of Ctrl-C. - Honor CLANG and CLANGCC environment variables. - Add proper command line arguments to TestRunner.py (see --help) llvm-svn: 73640
* Search path for 64-bit Ubuntu Linux, from Anders JohnsenDouglas Gregor2009-06-171-0/+6
| | | | llvm-svn: 73637
* Added missing @endcode.Fariborz Jahanian2009-06-171-0/+1
| | | | llvm-svn: 73629
* Diagnose the use of attributes on namespace aliases, from Anis AhmadDouglas Gregor2009-06-173-3/+21
| | | | llvm-svn: 73626
* Make sure that .td and .def files get into the list of headers in a CMake ↵Douglas Gregor2009-06-171-3/+6
| | | | | | build, for use in Xcode and Visual Studio llvm-svn: 73623
* link in targetsChris Lattner2009-06-171-0/+4
| | | | llvm-svn: 73619
* Remove old #includesChris Lattner2009-06-171-2/+0
| | | | llvm-svn: 73618
* Use env properly in test/Driver/analyze.cDouglas Gregor2009-06-171-2/+1
| | | | llvm-svn: 73609
* Update clang for the add ->add/fadd split. Likewise for sub and mul.Chris Lattner2009-06-172-36/+105
| | | | llvm-svn: 73604
* Remove all non-const getters from TemplateArgumentList.Anders Carlsson2009-06-171-10/+0
| | | | llvm-svn: 73589
* Place -Wreadonly-setter-attrs under -Wmost option group.Fariborz Jahanian2009-06-172-1/+3
| | | | llvm-svn: 73585
* If any tests fail, the test runner returns a status code of 1Douglas Gregor2009-06-161-1/+2
| | | | llvm-svn: 73584
OpenPOWER on IntegriCloud