- Nov 15, 2009
-
-
Daniel Dunbar authored
- This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833
-
Douglas Gregor authored
llvm-svn: 88832
-
Mike Stump authored
llvm-svn: 88828
-
Daniel Dunbar authored
- The build scriptage is about twice as long as the code, which is nice. :) llvm-svn: 88826
-
Daniel Dunbar authored
Move tools/wpa to examples/wpa, and unbreak its build. llvm-svn: 88825
-
Daniel Dunbar authored
- Expects the plugin has been loaded with -load. - Using this may require disabling TOOL_NO_EXPORTS in the clang-cc Makefile, this breaks the llvm::Registry way of working (static constructors are bad, kids). This should be replaced with a "real" plugin model that has explicit plugin interfaces. llvm-svn: 88824
-
Mike Stump authored
llvm-svn: 88823
-
- Nov 14, 2009
-
-
Anders Carlsson authored
llvm-svn: 88821
-
Daniel Dunbar authored
-- ddunbar@giles:clang-cc (master)$ grep llvm::cl::opt clang-cc.cpp # Woot ddunbar@giles:clang-cc (master)$ -- llvm-svn: 88820
-
Daniel Dunbar authored
- We still need support for detecting the target features, since the name doesn't actually do a good job of decribing what the CPU supports (for LLVM). llvm-svn: 88819
-
Anders Carlsson authored
Add an internal CreateRecordDecl that will create a CXXRecordDecl when compiling C++ and a RecordDecl otherwise. llvm-svn: 88816
-
Anders Carlsson authored
llvm-svn: 88811
-
Anders Carlsson authored
llvm-svn: 88810
-
Sebastian Redl authored
- Have TryStaticImplicitCast set the cast kind to NoOp when binding a reference. CheckReferenceInit already inserts implicit casts to the necessary types. This fixes an assertion in CodeGen for some casts and brings a fix for PR5453 close, if I understand that bug correctly. - Also, perform calculated implicit cast sequences if they're determined to work. This finally diagnoses static_cast to ambiguous or implicit bases and fixes two long-standing fixmes in the test case. For the C-style cast, this requires propagating the access check suppression pretty deep into other functions. - Pass the expressions for TryStaticCast and TryStaticImplicitCast by reference. This should lead to a better AST being emitted for such casts, and also fixes a memory leak, because CheckReferenceInit and PerformImplicitConversion wrap the node passed to them. These wrappers were previously lost. llvm-svn: 88809
-
Anders Carlsson authored
llvm-svn: 88808
-
Anders Carlsson authored
Have CGDebugInfo::getOrCreateType cache the QualType instead of having every ConvertType overload do it. llvm-svn: 88807
-
Daniel Dunbar authored
llvm-svn: 88801
-
Benjamin Kramer authored
llvm-svn: 88797
-
Mike Stump authored
llvm-svn: 88795
-
Mike Stump authored
llvm-svn: 88792
-
Benjamin Kramer authored
- Eliminates many calls to std::string.c_str() - Fixes an invalid read in ReturnStackAddressChecker due to an unsafe call to StringRef.data() which doesn't guarantee null-termination. llvm-svn: 88779
-
Daniel Dunbar authored
Please report any discrepancies you see in clang-cc, I'm not confident that our regression tests cover all the fun ways one can use clang-cc. llvm-svn: 88776
-
Daniel Dunbar authored
llvm-svn: 88774
-
Daniel Dunbar authored
Add FrontendActions, which provides a FrontendAction interface to all the existing AST consumer based clang-cc actions. llvm-svn: 88773
-
Daniel Dunbar authored
llvm-svn: 88772
-
Eli Friedman authored
legitimately has side-effects (and needs to be generated as a non-constant). llvm-svn: 88767
-
Eli Friedman authored
local variable. llvm-svn: 88766
-
Daniel Dunbar authored
llvm-svn: 88765
-
Daniel Dunbar authored
llvm-svn: 88764
-
Eli Friedman authored
when there are more parameters in the prototype than arguments to the call. llvm-svn: 88759
-
Daniel Dunbar authored
llvm-svn: 88758
-
Daniel Dunbar authored
(instead of running it with arbitrary consumers). - Also, turn any -fixit-at lookup failure into an error. llvm-svn: 88757
-
Eli Friedman authored
llvm-svn: 88756
-
Eli Friedman authored
more familiar with this stuff should double-check that there isn't some more general rule; this is purely from inspecting g++ output.) llvm-svn: 88755
-
Eli Friedman authored
definitions just because the type happens to be an array type. llvm-svn: 88752
-
Douglas Gregor authored
cast) that is converting to a class type, enumerate its constructors as in any other direct initialization. This ensures that we get the proper conversion sequence. llvm-svn: 88751
-
Daniel Dunbar authored
- Not tested, but -verify with multiple inputs should work now. llvm-svn: 88750
-
Daniel Dunbar authored
llvm-svn: 88749
-
Daniel Dunbar authored
- This reimplements -verify as just another DiagnosticClient, which buffers the diagnostics and checks them when the source file is complete. There are some hacks to make this work, but they are all internal, and this exposes a better external interface. - This also tweaks a few things: o Errors are now just regular diagnostics. o Frontend diagnostics are now caught (for example, errors in command line arguments), although there isn't yet a way to specify that they are expected. That would be nice though. - Not yet used. llvm-svn: 88748
-
Anders Carlsson authored
llvm-svn: 88747
-