summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
Commit message (Collapse)AuthorAgeFilesLines
* Switch to StringRef based BitstreamWriter APIs, where appropriate.Daniel Dunbar2009-08-241-21/+13
| | | | | | - There is lots of non-endian safe code in here... :/ llvm-svn: 79905
* Switch TargetInfo to store an llvm::Triple.Daniel Dunbar2009-08-242-4/+5
| | | | | | - Primarily to discourage clients form making decisions based on the string. llvm-svn: 79901
* prune #includes.Chris Lattner2009-08-241-1/+1
| | | | llvm-svn: 79889
* API changes to match llvm ToT.Chris Lattner2009-08-237-18/+17
| | | | llvm-svn: 79868
* Replace cerr with errs().Benjamin Kramer2009-08-238-27/+19
| | | | llvm-svn: 79854
* use errs() instead of cerr.Chris Lattner2009-08-231-1/+1
| | | | llvm-svn: 79829
* Don't install Clang libraries.Douglas Gregor2009-08-231-0/+3
| | | | llvm-svn: 79824
* adjust for raw_fd_ostream api change.Chris Lattner2009-08-233-13/+10
| | | | llvm-svn: 79809
* Add a -fno-elide-constructors option to clang-cc.Anders Carlsson2009-08-222-0/+2
| | | | llvm-svn: 79782
* Tie the local check NSErrorCheck to a Decl to pave the wayZhongxing Xu2009-08-211-1/+1
| | | | | | to untie the ExplodedGraph from a specific Decl. llvm-svn: 79588
* Remove TypeSpecStartLocation from VarDecl/FunctionDecl/FieldDecl, and use ↵Argyrios Kyrtzidis2009-08-212-9/+2
| | | | | | DeclaratorInfo to get this information. llvm-svn: 79584
* Make the new Objective-C "id" and "Class" redefinition types specialDouglas Gregor2009-08-212-0/+8
| | | | | | | types that are preloaded by the PCH file. Fixes PCH breakage introduced in r79248. llvm-svn: 79583
* Using "ObjCImplicitSetterGetterRefExpr" instead of ↵Fariborz Jahanian2009-08-203-13/+13
| | | | | | | | "ObjCImplctSetterGetterRefExpr". A field rename and more comments. llvm-svn: 79537
* Remove now unnecessary helper methods.Daniel Dunbar2009-08-192-5/+5
| | | | llvm-svn: 79460
* Switch to SmallString::str from SmallString::c_str.Daniel Dunbar2009-08-191-2/+2
| | | | | | - Several FIXMEs due to non-Twinification of IRBuilder. llvm-svn: 79455
* Convert parts of Rewriter to StringRef based API.Daniel Dunbar2009-08-194-13/+14
| | | | | | | - Please accept my sincere apologies for the gratuitous elimination of code duplication, manual string length counting, unnecessary strlen calls, etc. llvm-svn: 79448
* Store/load type source info from/to PCH files.Argyrios Kyrtzidis2009-08-192-7/+149
| | | | llvm-svn: 79396
* Introduce DeclaratorDecl and pass DeclaratorInfo through the Decl/Sema ↵Argyrios Kyrtzidis2009-08-192-21/+22
| | | | | | | | | | | | interfaces. DeclaratorDecl contains a DeclaratorInfo* to keep type source info. Subclasses of DeclaratorDecl are FieldDecl, FunctionDecl, and VarDecl. EnumConstantDecl still inherits from ValueDecl since it has no need for DeclaratorInfo. Decl/Sema interfaces accept a DeclaratorInfo as parameter but no DeclaratorInfo is created yet. llvm-svn: 79392
* Renamed ClassProp data member of ObjCImplctSetterGetterRefExprFariborz Jahanian2009-08-182-3/+3
| | | | | | | | to InterfaceDecl, as it is unrelated to any property and holds the InterfaceDecl needed for accessing class getter/setter methods using the dot-syntax. llvm-svn: 79371
* Renamed ObjCKVCRefExpr to ObjCImplctSetterGetterRefExpr.Fariborz Jahanian2009-08-183-7/+13
| | | | | | | | Removed an unnecessary loop to get to setters incoming argument. Added DoxyGen comments. Still more work to do in this area (WIP). llvm-svn: 79365
* Change ActOnReturnStmt to not take a FullExprArg. Instead, Sema will wrap ↵Anders Carlsson2009-08-181-1/+1
| | | | | | the return expr inside a CXXExprWithTemporaries if needed. llvm-svn: 79342
* AddInitializerToDecl can't take a FullExprArg. Make it take an ExprArg, and ↵Anders Carlsson2009-08-161-1/+1
| | | | | | create the CXXExprWithTemporaries before setting the initializer on the VarDecl. llvm-svn: 79176
* Add an additional C++ hardcoded search path.Eli Friedman2009-08-151-0/+3
| | | | llvm-svn: 79075
* Extend the ProgramPoint to include the context information LocationContext,Zhongxing Xu2009-08-151-2/+2
| | | | | | | which is either a stack frame context of the function or a local scope context. llvm-svn: 79072
* PR4715Shantonu Sen2009-08-141-1/+1
| | | | | | | -Wno-error disables WarningsAsErrors instead of mistakenly being treated like -Werror llvm-svn: 78987
* Transition the PCH support for ShuffleVectorExpr over to ASTContext allocationNate Begeman2009-08-121-1/+2
| | | | llvm-svn: 78783
* Take 2 on AltiVec-style vector initializers. Nate Begeman2009-08-101-2/+3
| | | | | | | | | | | | Fixes PR4704 problems Addresses Eli's patch feedback re: ugly cast code Updates all postfix operators to remove ParenListExprs. While this is awful, no better solution (say, in the parser) is obvious to me. Better solutions welcome. llvm-svn: 78621
* Revert r78535, it is causing a number of failures to build projects.Daniel Dunbar2009-08-101-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | --- Reverse-merging r78535 into '.': D test/Sema/altivec-init.c U include/clang/Basic/DiagnosticSemaKinds.td U include/clang/AST/Expr.h U include/clang/AST/StmtNodes.def U include/clang/Parse/Parser.h U include/clang/Parse/Action.h U tools/clang-cc/clang-cc.cpp U lib/Frontend/PrintParserCallbacks.cpp U lib/CodeGen/CGExprScalar.cpp U lib/Sema/SemaInit.cpp U lib/Sema/Sema.h U lib/Sema/SemaExpr.cpp U lib/Sema/SemaTemplateInstantiateExpr.cpp U lib/AST/StmtProfile.cpp U lib/AST/Expr.cpp U lib/AST/StmtPrinter.cpp U lib/Parse/ParseExpr.cpp U lib/Parse/ParseExprCXX.cpp llvm-svn: 78551
* map previously ignored __attribute((malloc)) to noalias attribute of llvm ↵Ryan Flynn2009-08-092-0/+2
| | | | | | function's return llvm-svn: 78541
* AltiVec-style vector initializer syntax, vec4 a = (vec4)(a, b, c, d);Nate Begeman2009-08-091-2/+3
| | | | | | | | In addition to being defined by the AltiVec PIM, this is also the vector initializer syntax used by OpenCL, so that vector literals are compatible with macro arguments. llvm-svn: 78535
* Introduce a new PragmaPack attribute, and use it for #pragma pack. The ↵Anders Carlsson2009-08-082-3/+7
| | | | | | | | PackedAttr now only represents __attribute__((packed)). This is necessary because #pragma pack and __attribute__((packed)) have different semantics. No functionality change yet, but this lays the groundwork for fixing a record layout bug. llvm-svn: 78483
* Patch should implement packed enums - PR4098. Credit to Anders Johnsen.Edward O'Callaghan2009-08-081-1/+2
| | | | llvm-svn: 78471
* Introduce reference counting for statements and expressions, using itDouglas Gregor2009-08-081-0/+4
| | | | | | | to allow sharing of nodes. Simplifies some aspects of template instantiation, and fixes both PR3444 and <rdar://problem/6757457>. llvm-svn: 78450
* add support for opensuse 11.1/11.2 search paths, patch by Stefan ReinauerChris Lattner2009-08-071-0/+16
| | | | | | and Carl-Daniel Hailfinger! llvm-svn: 78368
* Predefine __cplusplus to the right value (199711L), except when in GNU mode.Douglas Gregor2009-08-061-1/+7
| | | | llvm-svn: 78283
* Support nested-name-specifiers for C++ member access expressions, e.g.,Douglas Gregor2009-08-061-1/+2
| | | | | | | | this->Base::foo from James Porter! llvm-svn: 78278
* As GRState seems general enough, it is time to merge some template classes Zhongxing Xu2009-08-061-8/+8
| | | | | | | and their impl base classes. This can greatly simply some code of the core analysis engine. This patch merges ExplodedNodeImpl into ExplodedNode. llvm-svn: 78270
* Introduce the canonical type smart pointers, and use them in a few places toDouglas Gregor2009-08-051-3/+3
| | | | | | tighten up the static type system. llvm-svn: 78164
* Update for LLVM API changeDaniel Dunbar2009-08-041-2/+1
| | | | llvm-svn: 78044
* Emit a special 'BUGMETAEND' comment to aid in the postprocessing of HTML bug ↵Ted Kremenek2009-08-031-39/+20
| | | | | | reports. llvm-svn: 78021
* Update for LLVM API change.Daniel Dunbar2009-08-031-2/+1
| | | | llvm-svn: 77952
* Update for LLVM API change.Daniel Dunbar2009-08-031-1/+2
| | | | llvm-svn: 77947
* now we can let AnalysisManager to own the PathDiagnosticClient.Zhongxing Xu2009-08-031-6/+8
| | | | llvm-svn: 77945
* Create only one AnalysisManager for each translation unit. In HandleCode(),Zhongxing Xu2009-08-031-14/+11
| | | | | | reset the current analysis context of the AnalysisManager. llvm-svn: 77943
* Fix regression caused by recent refactoring where HTML and plist files would ↵Ted Kremenek2009-08-021-0/+5
| | | | | | not get flushed out when using '-disable-free'. llvm-svn: 77882
* Additional AuroraUX header path.Eli Friedman2009-08-011-0/+1
| | | | llvm-svn: 77811
* Add temp C++ include path for AuroraUX; patch by Edward O'Callaghan.Eli Friedman2009-08-011-0/+3
| | | | llvm-svn: 77786
* Rename Action::TagKind to Action::TagUseKind, which removes both a misnomerJohn McCall2009-07-311-1/+1
| | | | | | and a name collision. llvm-svn: 77658
* Add a CastKind enum to CastExpr. Right now it's not used for much but it ↵Anders Carlsson2009-07-313-24/+62
| | | | | | will be :) llvm-svn: 77650
* Fix use-after-release bug introduced in r77585 where the PathDiagnosticClientTed Kremenek2009-07-311-5/+4
| | | | | | | | | | | | | | | created by AnalysisConsumer would be released by an instance of AnalysisManager and then reused by later instances of AnalysisManager. Ownership of the PathDiagnosticClient now belongs (for now) in AnalysisConsumer. We also need this layering (for now) because the HTMLDiagnostiClient requires that the entire translation unit be processed before emitting diagnostics. This is done in its destructor (which should also be fixed, but that is another issue). This fixes PR 4653. llvm-svn: 77648
OpenPOWER on IntegriCloud