summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move ~CodeGenAction out-of-line.Daniel Dunbar2010-02-251-0/+2
| | | | llvm-svn: 97166
* Update CMake makefilesDouglas Gregor2010-02-251-1/+1
| | | | llvm-svn: 97113
* Frontend: Add CodeGenAction::takeModule().Daniel Dunbar2010-02-251-8/+26
| | | | llvm-svn: 97111
* Frontend: Pull CodeGenAction out more, and eliminate CreateBackendConsumer.Daniel Dunbar2010-02-252-55/+54
| | | | | | | | | | This is the way I would like to move the frontend function towards -- distinct pieces of functionality should be exposed only via FrontendAction implementations which have clean and relatively-stable APIs. This also isolates the surface area in clang which depends on LLVM CodeGen. llvm-svn: 97110
* Add TextDiagnosticPrinter::setPrefix, for adding a string to prefix diagnosticDaniel Dunbar2010-02-251-1/+4
| | | | | | messages with. llvm-svn: 97101
* Implement nasty rewriting of nested blocks when innerFariborz Jahanian2010-02-241-4/+76
| | | | | | | blocks use variables not used in any of the outer blocks. (Fixes radar 7682149). llvm-svn: 97073
* Fix rewriting of a method when return type isFariborz Jahanian2010-02-241-0/+4
| | | | | | a block pointer type. Fixes radar 7682149. llvm-svn: 97008
* Add support for the weakref attribute. We still produce "alias weak" as ↵Rafael Espindola2010-02-232-1/+2
| | | | | | llvm-gcc does, but are more strict on what uses of weakref we accept. llvm-svn: 96992
* Fixes a rewriting of qualified-id type which exposed a biggerFariborz Jahanian2010-02-231-5/+0
| | | | | | rewriting problem. Fixes radar 7680953. llvm-svn: 96987
* Fixes a rewriting of byref variable when its initializer isFariborz Jahanian2010-02-221-13/+29
| | | | | | itself rewritten. Radar 7669784. llvm-svn: 96798
* Eliminate the default arguments to ASTContext::getFunctionType(),Douglas Gregor2010-02-211-13/+37
| | | | | | | | fixing up a few callers that thought they were propagating NoReturn information but were in fact saying something about exception specifications. llvm-svn: 96766
* Implement PCH support for C++ namespaces.Douglas Gregor2010-02-212-0/+28
| | | | llvm-svn: 96738
* Revert: "Change InitListExpr to allocate the array for holding references"Ted Kremenek2010-02-192-12/+8
| | | | | | | | This was causing buildbot breakage. This reverts commit d46e952cc8cb8d9eed8657d9a0b267910a0f745a. llvm-svn: 96652
* Re-introduce the ctor/dtor alias optimization, this time hidden behind aJohn McCall2010-02-191-0/+3
| | | | | | command-line option which defaults off. llvm-svn: 96649
* Change InitListExpr to allocate the array for holding referencesTed Kremenek2010-02-192-8/+12
| | | | | | | | | | | | | | | | to initializer expressions in an array allocated using ASTContext. This plugs a memory leak when ASTContext uses a BumpPtrAllocator to allocate memory for AST nodes. In my mind this isn't an ideal solution; it would be nice to have a general "vector"-like class that allocates memory using ASTContext, but whose guts could be separated from the methods of InitListExpr itself. I haven't gone and taken this approach yet because it isn't clear yet if we'll eventually want an alternate solution for recylcing memory using by InitListExprs as we are constructing the ASTs. llvm-svn: 96642
* Patch removes IVars list from ObjCInterfaceDecl andFariborz Jahanian2010-02-192-4/+3
| | | | | | instead relies on their DeclContext for iteration, etc. llvm-svn: 96638
* Teach ASTUnit to keep track of temporary files, then delete them whenDouglas Gregor2010-02-181-3/+3
| | | | | | the ASTUnit itself is destroyed. Fixes <rdar://problem/7649385>. llvm-svn: 96628
* Rework how CIndex handles diagnostics. Rather than using a callback,Douglas Gregor2010-02-182-8/+63
| | | | | | | | | | | | | | | | | | we attach diagnostics to translation units and code-completion results, so they can be queried at any time. To facilitate this, the new StoredDiagnostic class stores a diagnostic in a serializable/deserializable form, and ASTUnit knows how to capture diagnostics in this stored form. CIndex's CXDiagnostic is a thin wrapper around StoredDiagnostic, providing a C interface to stored or de-serialized diagnostics. I've XFAIL'd one test case temporarily, because currently we end up storing diagnostics in an ASTUnit that's never returned to the user (because it contains errors). I'll introduce a temporary fix for this soon; the real fix will be to allow us to return and query invalid ASTs. llvm-svn: 96592
* __typeof should be able to handle block pointer types whenFariborz Jahanian2010-02-181-1/+1
| | | | | | rewriting. Fixes radar 7659483. llvm-svn: 96549
* Sort cases.Ted Kremenek2010-02-181-2/+2
| | | | llvm-svn: 96536
* Add 'ns_returns_not_retained' and 'cf_returns_not_retained' attributes toTed Kremenek2010-02-182-2/+6
| | | | | | | match 'ns_returns_retained' and 'cf_returns_retained' respectively. These are not yet hooked up to the static analyzer. llvm-svn: 96535
* Add IBAction attribute to keep the IBOutlet attribute company.Ted Kremenek2010-02-172-0/+5
| | | | llvm-svn: 96447
* when a diagnostic is an extension and has no other -W flag, Chris Lattner2010-02-161-1/+4
| | | | | | | | | | | | indicate that it was enabled with -pedantic so people know why they're getting them: $ printf "int x;" | clang -xc - -pedantic <stdin>:1:7: warning: no newline at end of file [-pedantic] int x; ^ llvm-svn: 96365
OpenPOWER on IntegriCloud