summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* The old logic would add non-struct and non C++ struct variables to the localZhongxing Xu2010-10-011-7/+6
| | | | | | | scope. Now we only add C++ struct with non-trivial destructor variables to the local scope. llvm-svn: 115269
* Added generating CFGAutomaticObjDtors for exception variable in catch statement.Marcin Swiderski2010-10-011-0/+12
| | | | llvm-svn: 115266
* Added generating CFGAutomaticObjDtors for init statement, condition variable ↵Marcin Swiderski2010-10-011-3/+26
| | | | | | and implicit scope in for statement. llvm-svn: 115265
* dded generating CFGAutomaticObjDtors for condition variable and implicit ↵Marcin Swiderski2010-10-011-0/+18
| | | | | | scopes in switch statement. llvm-svn: 115264
* If we get a TU_CONTEXT update from a chained PCH file before weDouglas Gregor2010-10-011-2/+14
| | | | | | | actually have an ASTContext, delay the processing of that update. Patch by Sebastian Redl! Fixes <rdar://problem/8499034>. llvm-svn: 115263
* Added generating CFGAutomaticObjDtors for condition variable and implicit ↵Marcin Swiderski2010-10-011-1/+24
| | | | | | scopes in while and do statements. llvm-svn: 115262
* Enable chained precompiled headers for use with precompiled preamblesDouglas Gregor2010-10-011-3/+1
| | | | llvm-svn: 115260
* When an identifier that has a macro definition in the original PCHDouglas Gregor2010-10-011-1/+7
| | | | | | | file is somehow changed in a chained PCH file, make sure that we write out the macro definition. Fixes part of <rdar://problem/8499034>. llvm-svn: 115259
* Added generating CFGAutomaticObjDtors for condition variable and implicit ↵Marcin Swiderski2010-10-011-0/+24
| | | | | | scopes in if statement. llvm-svn: 115256
* Fixed checking for trivial destructor in ↵Marcin Swiderski2010-10-011-3/+4
| | | | | | CFGBuilder::addLocalScopeForVarDecl. Checked type does not have to represent C++ class. llvm-svn: 115254
* Added:Marcin Swiderski2010-10-011-0/+10
| | | | | | | | - Adding LocalScope for CompoundStmt, - Adding CFGAutomaticObjDtors for end of scope, return, goto, break, continue, - Regression tests for above cases. llvm-svn: 115252
* Output debug info. for ivars declared in classFariborz Jahanian2010-10-011-3/+2
| | | | | | | extension and implementation. Fixes rdar://8493239. llvm-svn: 115248
* Clang part of MMX rewrite (goes with 115243).Dale Johannesen2010-09-301-44/+40
| | | | llvm-svn: 115244
* Added methods for adding LocalScopes and CFGAutomaticObjDtors.Marcin Swiderski2010-09-301-0/+131
| | | | llvm-svn: 115237
* Added methods for inserting CFGAutomaticObjDtors to CFGBlocks,Marcin Swiderski2010-09-301-0/+37
| | | | | | Fixed some misspells in comments. llvm-svn: 115236
* Added:Marcin Swiderski2010-09-301-5/+36
| | | | | | | | | - post-increament, distance and bool conversion methods to LocalScope::const_iterator, - adding VarDecl to LocalScope. Fixed some misspells in comments. llvm-svn: 115227
* Rewriting array element type of qualified-id.Fariborz Jahanian2010-09-301-0/+4
| | | | | | Fixes rdra://8475819. llvm-svn: 115201
* Introduce -flimit-debug-info.Devang Patel2010-09-305-7/+62
| | | | | | In this experimental mode try avoiding debug info emission for classes as much as possible. The goal is to reduce size of produced debuginfo without reducing quality of debug info in general. This is a work in progress. llvm-svn: 115188
* Support implicit includes when generating a PCH and allow the user to pass a ↵Argyrios Kyrtzidis2010-09-301-1/+35
| | | | | | | | -include on the command line following the PCH include. Fixes rdar://7382084. llvm-svn: 115159
* Driver: Ignore the found PCH file if its '-include' is not the first one.Argyrios Kyrtzidis2010-09-301-7/+17
| | | | llvm-svn: 115158
* Added two new command line arguments:Marcin Swiderski2010-09-304-3/+13
| | | | | | | -cfg-add-implicit-dtors - sets CFG::BuildOptions::AddImplicitDtors for AnalysisCosumer to true, -cfg-add-initializers - sets CFG::BuildOptions::AddInitializers for AnalysisCosumer to true. llvm-svn: 115142
* Include changes to VisitCXXMemberCallExpr (call visitor functions).Ted Kremenek2010-09-301-6/+19
| | | | llvm-svn: 115120
* Make the FileID import map key on FileID.Sebastian Redl2010-09-301-3/+3
| | | | llvm-svn: 115118
* In MeasureTokenLength, the FileLoc supplied to the lexer must point to the ↵Sebastian Redl2010-09-301-1/+2
| | | | | | start of the buffer, or we risk overflow. llvm-svn: 115117
* Tweak nil receiver checker to not warning about 64-bit return values.Ted Kremenek2010-09-301-2/+5
| | | | | Fixes: <rdar://problem/7513117> llvm-svn: 115113
* AnalyzerStatsChecker improvements:Tom Care2010-09-291-2/+15
| | | | | | | - Use BlockEntrance rather than BlockEdge to bring in line with UnreachableCodeChecker. Fixes an issue where unreached blocks would still be counted as reachable. - Added warnings for all BlockAborted locations. This allows us to see where the analyzer stopped analyzing. llvm-svn: 115110
* Change -analyzer-max-nodes to allow 0 as a parameter. This allows the ↵Tom Care2010-09-291-2/+10
| | | | | | analyzer to completely analyze a worklist regardless of time taken. llvm-svn: 115108
* Attach aritifical attribute with implicit parameters.Devang Patel2010-09-291-3/+6
| | | | | | Radar 8493141. llvm-svn: 115104
* Emit method access specifier.Devang Patel2010-09-291-0/+6
| | | | | | Radar 8490416. llvm-svn: 115090
* When performing template argument deduction of a function templateDouglas Gregor2010-09-292-6/+16
| | | | | | | | against a function type, be sure to check the type of the resulting function template specialization against the desired function type after substituting the deduced/defaulted template arguments. Fixes PR8196. llvm-svn: 115086
* Update to reflect DIFactory::CreateSubprogram() interface change from r115084.Devang Patel2010-09-291-15/+20
| | | | llvm-svn: 115085
* Remove dead code.Devang Patel2010-09-291-7/+0
| | | | llvm-svn: 115079
* Basic: Simplify getClangRepositoryPath and getClangRevision.Daniel Dunbar2010-09-292-27/+22
| | | | | | | | | | - I don't like returning StringRef's ever, unless it is actually important for performance, which it isn't here. - Also, stop validating getClangRevision to be an integer, I don't see a good reason to do this. llvm-svn: 115071
* Add support for attribute((naked)), patch by Zoxc on cfe-commits!Daniel Dunbar2010-09-293-3/+25
| | | | | | - Minor style tweaks by me. llvm-svn: 115056
* Fix handling of dependent nested namespace specifiers in UsingDeclsDouglas Gregor2010-09-291-4/+20
| | | | | | during template instantiation, from Martin Vejnar! llvm-svn: 115051
* Basic: Add support for git svn to get the repo version in clang executable,Daniel Dunbar2010-09-292-20/+28
| | | | | | patch by Jonathan Mulder! llvm-svn: 115049
* Frontend/XML: Add support for printing nested structures, patch by Martin ↵Daniel Dunbar2010-09-291-0/+12
| | | | | | Vejnár! llvm-svn: 115041
* Define _Bool, bool, true, and false macros in <stdbool.h> when we'reDouglas Gregor2010-09-291-1/+7
| | | | | | in a GNU-compatible C++ dialect. Fixes <rdar://problem/8477819>. llvm-svn: 115028
* Move the management of the set of conversion functions in a C++ classDouglas Gregor2010-09-292-28/+45
| | | | | | | | | | into CXXRecordDecl. The only part that we do not handle this way are using declarations, since that would require extra name lookup that we don't currently want to pay for. This fixes <rdar://problem/8459981>, so that LLDB can build a CXXRecordDecl and magically get all of the right bits set. llvm-svn: 115026
* Move the maintenance of CXXRecordDecl::DefinitionData's Abstract bitDouglas Gregor2010-09-293-77/+117
| | | | | | | | | | | completely into CXXRecordDecl, by adding a new completeDefinition() function. This required a little reshuffling of the final-overrider checking code, since the "abstract" calculation in the presence of abstract base classes needs to occur in CXXRecordDecl::completeDefinition() but we don't want to compute final overriders more than one in the common case. llvm-svn: 115007
* enhance tentative parsing to handle ms extensions, patch by Martin Vejnar!Chris Lattner2010-09-281-1/+6
| | | | llvm-svn: 115004
* Teach FunctionDecl::setPure() to (indirectly) mark the Abstract bit inDouglas Gregor2010-09-283-5/+14
| | | | | | CXXRecordDecl::DefinitionData, rather than having Sema mark the bit. llvm-svn: 114993
* Reinstate r114925 and r114929, both steps towardDouglas Gregor2010-09-285-89/+80
| | | | | | <rdar://problem/8459981>. llvm-svn: 114984
* vla expressions used in __typeof__ must be evaluated.Fariborz Jahanian2010-09-284-15/+44
| | | | | | Fixes rdar://8476159. llvm-svn: 114982
* Centralize the management of CXXRecordDecl::DefinitionData's Empty bitDouglas Gregor2010-09-284-27/+39
| | | | | | | | | | | | in CXXRecordDecl itself. Yes, this is also part of <rdar://problem/8459981>. This reinstates r114924, with one crucial bug fix: we were ignoring the implicit fields created by anonymous structs/unions when updating the bits in CXXRecordDecl, which means that a class/struct containing only an anonymous class/struct would be considered "empty". Hilarity follows. llvm-svn: 114980
* Move ExternalSemaSource::ReadMethodPool's implementation to Sema.cpp so that ↵Sebastian Redl2010-09-281-0/+6
| | | | | | the header can get away with forward declarations only for ObjCMethodList and Selector. Fixes <rdar://8467631>. llvm-svn: 114978
* Reinstate r114921, which I've exonerated via a self-host build.Douglas Gregor2010-09-283-28/+48
| | | | | | | | Centralize the management of CXXRecordDecl::DefinitionData's Aggregate and PlainOldData bits in CXXRecordDecl itself. Another milepost on the road toward <rdar://problem/8459981>. llvm-svn: 114977
* When we have two identifiers in a row in Objective-C, make sure toDouglas Gregor2010-09-281-1/+1
| | | | | | | | verify that we aren't in a message-send expression before digging into the identifier or looking ahead more tokens. Fixes a regression (<rdar://problem/8483253>) I introduced with bracket insertion. llvm-svn: 114968
* Don't warn with -Wbool-conversions if the user wrote an explicit cast like ↵Argyrios Kyrtzidis2010-09-281-1/+2
| | | | | | | | "(void *)false". Fixes rdar://8459342. llvm-svn: 114955
* Don't warn for an unused label if it has 'unused' attribute. Fixes ↵Argyrios Kyrtzidis2010-09-285-7/+32
| | | | | | rdar://8483139. llvm-svn: 114954
OpenPOWER on IntegriCloud