summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
...
* Remember declaration scope qualifiers in the AST. Imposes no memory overheadJohn McCall2010-03-152-3/+7
| | | | | | | | | | | on unqualified declarations. Patch by Enea Zaffanella! Minimal adjustments: allocate the ExtInfo nodes with the ASTContext and delete them during Destroy(). I audited a bunch of Destroy methods at the same time, to ensure that the correct teardown was being done. llvm-svn: 98540
* Add EmitString helper methodKovarththanan Rajaratnam2010-03-141-2/+6
| | | | llvm-svn: 98488
* Unbreak last commit. This should have been part of r98478.Kovarththanan Rajaratnam2010-03-141-3/+3
| | | | llvm-svn: 98480
* Pass file string by referenceKovarththanan Rajaratnam2010-03-141-6/+4
| | | | llvm-svn: 98478
* Path related cleanup. Remove unnecessary variables.Kovarththanan Rajaratnam2010-03-141-6/+2
| | | | llvm-svn: 98473
* Use makeAbsolute()Kovarththanan Rajaratnam2010-03-142-32/+19
| | | | llvm-svn: 98472
* Move to anonymous namespaceKovarththanan Rajaratnam2010-03-141-1/+1
| | | | llvm-svn: 98469
* Simplify code.Benjamin Kramer2010-03-131-11/+5
| | | | llvm-svn: 98437
* Use SmallString instead of SmallVectorKovarththanan Rajaratnam2010-03-133-14/+14
| | | | llvm-svn: 98436
* No need to call setIdentifierInfo() after LookUpIdentifierInfo() which ↵Kovarththanan Rajaratnam2010-03-132-4/+3
| | | | | | LookUpIdentifierInfo() will automatically do llvm-svn: 98435
* Allow users to set CPPFLAGS and CXXFLAGS on the make command line.Jeffrey Yasskin2010-03-121-1/+1
| | | | | Tested: make CPPFLAGS=-m64 CXXFLAGS=-m64 -j8 && (cd tools/clang;make test) llvm-svn: 98399
* Remember whether a ParmVarDecl was spelled with a default argument orJohn McCall2010-03-122-1/+5
| | | | | | | | whether it inherited one from a previous declaration. Patch by Enea Zaffanella! llvm-svn: 98362
* Add IdentifierTable::get() overload and start using itKovarththanan Rajaratnam2010-03-121-1/+1
| | | | llvm-svn: 98343
* Add tentative support for accessing local variables withFariborz Jahanian2010-03-111-7/+63
| | | | | | | external linkage (static, extern, etc.) in blocks in rewriter. wip. llvm-svn: 98265
* Change the 'super' messaging API in the rewriter.Fariborz Jahanian2010-03-101-23/+62
| | | | | | Fixes radar 7738452. llvm-svn: 98190
* Create a new InjectedClassNameType to represent bare-word references to the John McCall2010-03-102-0/+18
| | | | | | | | | | | | | injected class name of a class template or class template partial specialization. This is a non-canonical type; the canonical type is still a template specialization type. This becomes the TypeForDecl of the pattern declaration, which cleans up some amount of code (and complicates some other parts, but whatever). Fixes PR6326 and probably a few others, primarily by re-establishing a few invariants about TypeLoc sizes. llvm-svn: 98134
* Improve XML output for C++ classes, from Olaf Krzikalla!Douglas Gregor2010-03-081-7/+19
| | | | llvm-svn: 97954
* Extend ObjCMessageExpr for class method sends with the source locationDouglas Gregor2010-03-082-4/+6
| | | | | | of the class name. llvm-svn: 97943
* Keep track of type source information in the return type of anDouglas Gregor2010-03-082-1/+3
| | | | | | | | | | Objective-C method declaration, e.g., for - (Foo *)myMethod; we now have TypeSourceInfo for the Foo*. llvm-svn: 97942
* Undefine correct macroKovarththanan Rajaratnam2010-03-071-14/+14
| | | | llvm-svn: 97920
* Don't rely on implicit conversionKovarththanan Rajaratnam2010-03-071-2/+2
| | | | llvm-svn: 97916
* Rename to addPPCallbacks since we're effectively adding a callback and maybe ↵Kovarththanan Rajaratnam2010-03-072-5/+5
| | | | | | chaining it to an existing one llvm-svn: 97913
* Don't assert if PP already contains a valid PP callback. The PP can handle ↵Kovarththanan Rajaratnam2010-03-071-1/+0
| | | | | | multiple callbacks (using PPChainedCallbacks) llvm-svn: 97910
* on both the mac and linux, /usr/local/include is treated Chris Lattner2010-03-061-1/+1
| | | | | | | as a "C++ Friendly" system header directory. This fixes PR6523. llvm-svn: 97885
* Lowercase for consistencyKovarththanan Rajaratnam2010-03-062-3/+3
| | | | llvm-svn: 97878
* The Windows build is just too weird; there's no real cost to doing the ↵Douglas Gregor2010-03-051-2/+0
| | | | | | concurrency checks for ASTUnit in all builds llvm-svn: 97840
* Switch from NDEBUG to _DEBUG, since our Windows build is funnyDouglas Gregor2010-03-051-1/+1
| | | | llvm-svn: 97835
* A little hack to identify unwanted concurrency in CIndexDouglas Gregor2010-03-051-1/+4
| | | | llvm-svn: 97831
* Use clang::io::Emit8Kovarththanan Rajaratnam2010-03-051-3/+1
| | | | llvm-svn: 97810
* Patch to get around a rewriter bug rewriting storage classFariborz Jahanian2010-03-041-6/+15
| | | | | | on a block API struct definition. llvm-svn: 97754
* Fixes a bug whereby static const block var has static Fariborz Jahanian2010-03-041-0/+17
| | | | | | moved incorrectly. (radar 7714443). llvm-svn: 97734
* Revert changes r97693, r97700, and r97718.John McCall2010-03-041-72/+54
| | | | | | Our testing framework can't deal with disabled targets yet. llvm-svn: 97719
* Create a TargetMachine whenever we create a CodeGenAction. The codegen ofJohn McCall2010-03-041-54/+72
| | | | | | some builtins will rely on target knowledge. llvm-svn: 97693
* Remove the linux c includes part of my last patch.Eric Christopher2010-03-031-3/+0
| | | | llvm-svn: 97679
* Add in more c++ header paths for later gccs under gentoo linux.Eric Christopher2010-03-031-0/+14
| | | | | | | | Add in c header path for various linuxes as well. Partial patch from Christian Adåker! llvm-svn: 97666
* Move Emit24 to clang::ioKovarththanan Rajaratnam2010-03-021-6/+1
| | | | llvm-svn: 97569
* Cast a pointer to 'long long' to satisfy all compilation models.Fariborz Jahanian2010-03-021-1/+3
| | | | | | Satisfies radar 7703202. llvm-svn: 97532
* More rewriter of nested blocks fun stuff.Fariborz Jahanian2010-03-011-19/+28
| | | | | | Radar 7696893. llvm-svn: 97520
* Opt into the Verifier now that it's an opt-in feature ofDan Gohman2010-02-281-1/+10
| | | | | | addPassesToEmitFile. llvm-svn: 97358
* Debian sid moved these headers into /4.4 and left /4.4.3 as a symlink. Update.Nick Lewycky2010-02-271-1/+3
| | | | | | Also, add support for 32-bit x86 Debian sid. llvm-svn: 97347
* Revert 97324. Chris says this cleanup could hurt -E performance.Benjamin Kramer2010-02-271-8/+24
| | | | llvm-svn: 97331
* Simplify code.Benjamin Kramer2010-02-271-24/+8
| | | | llvm-svn: 97324
* Add an overload of Preprocessor::getSpelling which takes a SmallVector andBenjamin Kramer2010-02-271-6/+1
| | | | | | returns a StringRef. Use it to simplify some repetitive code. llvm-svn: 97322
* When given unsaved files in clang_createTranslationUnitFromSourceFile,Douglas Gregor2010-02-272-1/+3
| | | | | | | | | | copy the source buffers provided rather than referencing them directly, so that the caller can free those buffers immediately after calling clang_createTranslationUnitFromSourceFile(). Otherwise, we risk hitting those buffers later (when building source ranges, forming diagnostics, etc.). llvm-svn: 97296
* Prevent rewriter crash when variable type is missing.Fariborz Jahanian2010-02-261-0/+4
| | | | | | Fixes radar 7692183. llvm-svn: 97281
* Minor cleanup of the rewriter.Fariborz Jahanian2010-02-261-18/+22
| | | | llvm-svn: 97280
* Removed some unused code in rewriter.Fariborz Jahanian2010-02-261-28/+2
| | | | llvm-svn: 97274
* Fix rewriting of byref variables in nested blocks.Fariborz Jahanian2010-02-261-2/+9
| | | | | | Fixes radar 7692350. llvm-svn: 97254
* Rewriting of imported variable from outerFariborz Jahanian2010-02-261-0/+1
| | | | | | | blocks's argument in the inner block requires special treatment. Fixes radar 7692419. llvm-svn: 97244
* Support rewriting of property synthesis with retain/copyFariborz Jahanian2010-02-261-25/+98
| | | | | | attributes. Fixes radar 7214439. llvm-svn: 97203
OpenPOWER on IntegriCloud