summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
* Remove ModuleProviders from clang after r94686 removed them from LLVM.Jeffrey Yasskin2010-01-271-8/+4
| | | | llvm-svn: 94688
* Move 'LocalCheckers.h' to the 'Checkers' subdirectory.Ted Kremenek2010-01-261-1/+1
| | | | llvm-svn: 94609
* Added assert to the rewrite.Fariborz Jahanian2010-01-261-0/+1
| | | | llvm-svn: 94584
* Refix rewriting of an ivar access when it isFariborz Jahanian2010-01-261-14/+1
| | | | | | type-cast to its sub-class (radar 7575882). llvm-svn: 94559
* Fix a regression caused by my rewriting of cast of ivarFariborz Jahanian2010-01-261-9/+11
| | | | | | access (was radar 7575882). llvm-svn: 94481
* Fixes a rewriting bug of access ivar of a variable castFariborz Jahanian2010-01-251-1/+10
| | | | | | to subclass. (Fixes radar 7575882). llvm-svn: 94444
* Move BugReporter.h, PathDiagnostic.h, and BugType.h to ↵Ted Kremenek2010-01-253-4/+4
| | | | | | 'include/Checker/BugReporter' llvm-svn: 94428
* Update C++ include paths for Exherbo, by Ingmar Vanhassel.Benjamin Kramer2010-01-251-3/+3
| | | | llvm-svn: 94420
* Split libAnalysis into two libraries: libAnalysis and libChecker.Ted Kremenek2010-01-253-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | (1) libAnalysis is a generic analysis library that can be used by Sema. It defines the CFG, basic dataflow analysis primitives, and inexpensive flow-sensitive analyses (e.g. LiveVariables). (2) libChecker contains the guts of the static analyzer, incuding the path-sensitive analysis engine and domain-specific checks. Now any clients that want to use the frontend to build their own tools don't need to link in the entire static analyzer. This change exposes various obvious cleanups that can be made to the layout of files and headers in libChecker. More changes pending. :) This change also exposed a layering violation between AnalysisContext and MemRegion. BlockInvocationContext shouldn't explicitly know about BlockDataRegions. For now I've removed the BlockDataRegion* from BlockInvocationContext (removing context-sensitivity; although this wasn't used yet). We need to have a better way to extend BlockInvocationContext (and any LocationContext) to add context-sensitivty. llvm-svn: 94406
* 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
OpenPOWER on IntegriCloud