summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
* ASTUnit: Don't check that input files exist when parsing ASTs from the commandDaniel Dunbar2010-01-251-0/+4
| | | | | | | line -- they may be remapped (fake) files. This is useful for testing parsing entirely from memory. llvm-svn: 94395
* -fno-rtti is now the default.Chris Lattner2010-01-241-1/+0
| | | | llvm-svn: 94379
* Implement instantiation of AsmStmts (Crazy, I know)Anders Carlsson2010-01-241-1/+1
| | | | llvm-svn: 94361
* Extend clang_createTranslationUnitFromSourceFile() to support creatingDouglas Gregor2010-01-232-12/+61
| | | | | | translation units that include unsaved files. llvm-svn: 94258
* (1) Rename getClangSubversionRevision() to getClangRevision(), andTed Kremenek2010-01-222-16/+8
| | | | | | | | | | | | | | | | | have it return a StringRef instead of an integer (to be more VCS agnostic). (2) Add getClangFullRepositoryVersion(), which contains an amalgamation of the repository name and the revision. (3) Change PCH to only emit the string returned by getClangFullRepositoryVersion() instead of also emitting the value of getClangSubversionRevision() (which has been removed). This is functionally equivalent. More cleanup to version string generation pending... llvm-svn: 94231
* Rename pch::SVN_BRANCH_REVISION to pch::VERSION_CONTROL_BRANCH_REVISION.Ted Kremenek2010-01-222-4/+4
| | | | llvm-svn: 94214
* Rename getClangSubversionPath() -> getClangRepositoryPath() and have it ↵Ted Kremenek2010-01-222-4/+4
| | | | | | return a StringRef. llvm-svn: 94213
* Patch to implement rewriting of properties.Fariborz Jahanian2010-01-213-3/+9
| | | | | | Fixes radar 7562952. llvm-svn: 94087
* Make some helper functions static.Benjamin Kramer2010-01-201-5/+5
| | | | llvm-svn: 94004
* Don't store a Twine temporary, it's unsafe.Benjamin Kramer2010-01-201-4/+6
| | | | llvm-svn: 94003
* Move the MacroBuilder utilitiy to its own header. Update references.Chandler Carruth2010-01-201-0/+1
| | | | | | Comments and/or improvements to the documentation are welcome. llvm-svn: 93982
* Fix an invalid Twine use spotty by abbeyj, it isn't safe to use TwineDaniel Dunbar2010-01-201-1/+4
| | | | | | | temporaries (this is one reason I'm nervous about propagating their use beyond particularly performance critical places). llvm-svn: 93981
* Add a missing case for DeclContext printer.Zhongxing Xu2010-01-201-0/+5
| | | | llvm-svn: 93973
* Also handle CXXConstructor, CXXDestructor and CXXConversion in CFGMike Stump2010-01-201-2/+4
| | | | | | printing. llvm-svn: 93968
* Use the llvm coding convention for indentation for switch.Mike Stump2010-01-209-148/+148
| | | | llvm-svn: 93966
* add support for Fedora 10 x86_64, there really should be a better way to ↵Chris Lattner2010-01-191-0/+4
| | | | | | | | handle this. patch by Dmitry llvm-svn: 93948
* The type of a compound literal expression is not necessarily the same as theJohn McCall2010-01-191-4/+4
| | | | | | type which was syntactically written. Fixes PR 6080. llvm-svn: 93933
* Rewriteing of gnu extension __typeof in objective-c rewriter.Fariborz Jahanian2010-01-191-1/+13
| | | | | | Fixes radar 6358225. llvm-svn: 93917
* Avoid an instantiation of std::sort.Benjamin Kramer2010-01-191-14/+10
| | | | llvm-svn: 93882
* Preserve type source information in compound literal expressions.John McCall2010-01-183-3/+10
| | | | | | Patch by Enea Zaffanella! llvm-svn: 93752
* Print fix-it hints properly around tabs, from Christian Adåker!Douglas Gregor2010-01-181-0/+36
| | | | llvm-svn: 93750
* Improve source-location information for builtin TypeLocs, from EneaDouglas Gregor2010-01-182-2/+14
| | | | | | Zaffanella (with a couple of my tweaks). llvm-svn: 93733
* Encoding calling conventions in the type system, from Charles Davis!Douglas Gregor2010-01-182-4/+8
| | | | llvm-svn: 93726
* PR6055: fix FreeBSD c++ include path. patch by Roman DivackyNuno Lopes2010-01-171-1/+1
| | | | llvm-svn: 93668
* Add PCH support for CXXStaticCastExpr, CXXDynamicCastExpr, ↵Sam Weinig2010-01-162-0/+95
| | | | | | CXXReinterpretCastExpr, CXXConstCastExpr and CXXFunctionalCastExpr. llvm-svn: 93658
* Fix a rewriting crash and correct rewriting of __blockFariborz Jahanian2010-01-161-7/+18
| | | | | | declaration where its initializer has a type-cast. llvm-svn: 93650
* Improve location information for Objective-C category declarations. WeDouglas Gregor2010-01-162-3/+6
| | | | | | | | | | | | | previously only had a single location (the @ in @interface); now we know where the @ is (for the start of the declaration), where the class name is (that's the normal "location" now for diagnostics), and where the category name is. Also, eliminated the redundant "end" location, since ObjCContainerDecl already has better @end information. The only XFAIL'd test is temporary; will un-XFAIL-it once I've taught CIndex how to use the new locations. llvm-svn: 93639
* Keep track of the source locations for each protocol reference inDouglas Gregor2010-01-163-7/+45
| | | | | | | | Objective-C classes, protocol definitions, forward protocol declarations, and categories. This information isn't actually used yet; that's coming next. llvm-svn: 93636
* define __weak to null in rewritten source for Fariborz Jahanian2010-01-151-0/+1
| | | | | | -fms-extensions as well. llvm-svn: 93569
* Preserve type source information in explicit cast expressions.John McCall2010-01-153-98/+70
| | | | | | Patch by Enea Zaffanella. llvm-svn: 93522
* Do not do the block-specific rewrite when there is no block literals.Fariborz Jahanian2010-01-151-1/+1
| | | | | | Fixes radar 7546096. llvm-svn: 93519
* Patch to avoid duplicate declaration of byref structsFariborz Jahanian2010-01-141-9/+35
| | | | | | | for __block variables of same name declared in multiple scopes. Fixes radar 7540194 llvm-svn: 93474
* Fix a bug in rewrite whereby functions using blocks put extern "C" in wrong ↵Fariborz Jahanian2010-01-141-2/+38
| | | | | | | | place. Fixes radar 7284618. llvm-svn: 93382
* Add type source information for both kinds of typeof types.John McCall2010-01-132-4/+14
| | | | | | Patch by Enea Zaffanella. llvm-svn: 93344
* Predefine __weak attribute when doing objective-cFariborz Jahanian2010-01-132-4/+11
| | | | | | rewriting for any target. (refixes radar 7530235). llvm-svn: 93331
* diagnose invalid values of -ftabstop, patch by Christian Adaker!Chris Lattner2010-01-132-4/+12
| | | | llvm-svn: 93288
* cc1: Factor out CompilerInstance::ExecuteAction which has the majority of theDaniel Dunbar2010-01-131-0/+87
| | | | | | | | clang -cc1 logic for running an action against a set of options. - This should make it easier to build tools that have a clang -cc1 like interface, but aren't actually part of clang -cc1. llvm-svn: 93282
* Improve on objective-c pointer recognitionFariborz Jahanian2010-01-121-2/+3
| | | | | | during rewrite. No functionality chang. llvm-svn: 93241
* Fix rewriting of MacOS sjlj based eh.Fariborz Jahanian2010-01-121-4/+4
| | | | | | Fixes radar 7522880. llvm-svn: 93219
* Fix rewriting for forward class declaration.Fariborz Jahanian2010-01-111-3/+11
| | | | | | (fixes radar 6969189). llvm-svn: 93201
* Fixup rewrite of ivars accessed via an explicit objectFariborz Jahanian2010-01-111-2/+3
| | | | | | in a function. Fixes radar 7522803. llvm-svn: 93159
* Silence MSVC warning.Benjamin Kramer2010-01-101-1/+1
| | | | | | RewriteObjC.cpp(4419) : warning C4804: '>' : unsafe use of type 'bool' in operation llvm-svn: 93124
* Generalize target weirdness handling having proper layering in mind:Anton Korobeynikov2010-01-102-1/+7
| | | | | | | | | 1. Add helper class for sema checks for target attributes 2. Add helper class for codegen of target attributes As a proof-of-concept - implement msp430's 'interrupt' attribute. llvm-svn: 93118
* Fix PR5982, a refacto in checking for '=' in a -D argument.Daniel Dunbar2010-01-101-8/+5
| | | | llvm-svn: 93088
* implement -ftabstop=width, patch by Christian AdåkerChris Lattner2010-01-092-2/+8
| | | | llvm-svn: 93078
* revert 91891, a workaround for PR5514.Chris Lattner2010-01-091-2/+1
| | | | llvm-svn: 93077
* Use MacroBuilder for TargetDefines instead of std::vector.Benjamin Kramer2010-01-091-3/+1
| | | | llvm-svn: 93058
* Move MacroBuilder into Frontend/Utils.h and clean it up a bit.Benjamin Kramer2010-01-091-127/+89
| | | | llvm-svn: 93057
* Rework InitPreprocessor to use a MacroBuilder class instead of pushing aroundBenjamin Kramer2010-01-091-248/+208
| | | | | | | | | | | | std::vectors. - MacroBuilder wraps a raw_ostream so it can easily write to any buffer supported by raw_ostream. - MacroBuilder's method take Twines for easy string concatenation (this was done with sprintf and temporary buffers before). - Targets still use std::vector as they don't have access to the builder. llvm-svn: 93051
* Switch UndefineBuiltinMacro() over to using StringRefKovarththanan Rajaratnam2010-01-091-2/+2
| | | | llvm-svn: 93049
OpenPOWER on IntegriCloud