summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-global-constructors.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PR9669: implement correct checking for [dcl.init.string]p2.Eli Friedman2011-04-111-2/+2
| | | | llvm-svn: 129260
* static local variables with destructors don't require a global destructorJohn McCall2010-09-181-2/+8
| | | | | | | | | unless we're on a platform without __cxa_atexit (or use thereof has been disabled). This patch actually just disables the check completely for static locals, but I've filed http://llvm.org/bugs/show_bug.cgi?id=8176 to track the platform-specific fix. llvm-svn: 114269
* one piece of code is responsible for the lifetime of every aggregateJohn McCall2010-09-151-2/+2
| | | | | | | | | | | | | slot. The easiest way to do that was to bundle up the information we care about for aggregate slots into a new structure which demands that its creators at least consider the question. I could probably be convinced that the ObjC 'needs GC' bit should be rolled into this structure. Implement generalized copy elision. The main obstacle here is that IR-generation must be much more careful about making sure that exactly llvm-svn: 113962
* Don't give 'global constructor' warnings for function statics, even if they ↵Sebastian Redl2010-09-081-1/+11
| | | | | | have a direct initializer. Fixes PR8095. llvm-svn: 113344
* Static local variables don't result in global constructors being emitted.Anders Carlsson2010-09-031-0/+23
| | | | llvm-svn: 112933
* Further adjustments to -Wglobal-constructors; works for references and directJohn McCall2010-08-021-8/+11
| | | | | | initializations now. llvm-svn: 110063
* Kill off RequiresGlobalConstructor in favor of isConstantInitializer.John McCall2010-08-011-0/+16
| | | | | | Note some obvious false positives in the test case. llvm-svn: 109986
* Make a first pass at implementing -Wglobal-constructors. I'm worried that thisJohn McCall2010-08-011-0/+39
will end up bizarrely mirroring CGExprConstant, but that might be the hazard of this feature. llvm-svn: 109984
OpenPOWER on IntegriCloud