- Dec 13, 2009
-
-
Daniel Dunbar authored
Lift builtin-include-path logic out of ASTUnit::LoadFromCommandLine and fix CIndex to pass in the right directory (previously it was using the path to the main executable, which generally is wrong). llvm-svn: 91238
-
Daniel Dunbar authored
llvm-svn: 91237
-
Chandler Carruth authored
llvm-svn: 91234
-
Daniel Dunbar authored
llvm-svn: 91229
-
- Dec 12, 2009
-
-
Fariborz Jahanian authored
(fixes radar 7466494). llvm-svn: 91227
-
Douglas Gregor authored
implicitly-generated AST nodes. We previously built instantiated nodes for each of these AST nodes, then passed them on to Sema, which was not prepared to see already-type-checked nodes (see PR5755). In some places, we had ugly workarounds to try to avoid re-type-checking (e.g., in VarDecl initializer instantiation). Now, we skip implicitly-generated nodes when performing instantiation, preferring instead to build just the AST nodes that directly reflect what was written in the source code. This has several advantages: - We don't need to instantiate anything that doesn't have a direct correlation to the source code, so we can have better location information. - Semantic analysis sees the same thing at template instantiation time that it would see for a non-template. - At least one ugly hack (VarDecl initializers) goes away. Fixes PR5755. llvm-svn: 91218
-
Zhongxing Xu authored
llvm-svn: 91216
-
John McCall authored
llvm-svn: 91215
-
Douglas Gregor authored
in a potentially potentially evaluated context, queue those diagnostics and only emit them if the context ends up being potentially evaluated. This completes the fix for PR5761. llvm-svn: 91213
-
Douglas Gregor authored
__builtin_offsetof, passing through an ellipsis) when we're in an unevaluated context. This is the first part of the fix to PR5761, which deals with the simple case of an unevaluated context. llvm-svn: 91210
-
Jeffrey Yasskin authored
no extra safety anyway. llvm-svn: 91207
-
Eli Friedman authored
llvm-svn: 91205
-
Anders Carlsson authored
llvm-svn: 91204
-
Mike Stump authored
This implements a new flag -fcatch-undefined-behavior. The flag turns on additional runtime checks for: T a[I]; a[i] abort when i < 0 or i >= I. Future stuff includes shifts by >= bitwidth amounts. llvm-svn: 91198
-
Ted Kremenek authored
llvm-svn: 91196
-
Ted Kremenek authored
Make using '-fshort-enums' an error until it is actually implemented (changes the ABI, so it is dangerous to not error out if we don't support it). Fixes <rdar://problem/7461006>. llvm-svn: 91191
-
Anders Carlsson authored
llvm-svn: 91190
-
Anders Carlsson authored
llvm-svn: 91189
-
Anders Carlsson authored
llvm-svn: 91187
-
Anders Carlsson authored
llvm-svn: 91182
-
Anders Carlsson authored
llvm-svn: 91180
-
Daniel Dunbar authored
llvm-svn: 91176
-
Daniel Dunbar authored
llvm-svn: 91174
-
- Dec 11, 2009
-
-
Fariborz Jahanian authored
(fixes radar 7465023). llvm-svn: 91171
-
John McCall authored
llvm-svn: 91163
-
Fariborz Jahanian authored
valid standard conversion to match g++'s behaviour. llvm-svn: 91157
-
Eli Friedman authored
llvm-svn: 91156
-
Benjamin Kramer authored
llvm-svn: 91155
-
Eli Friedman authored
llvm-svn: 91152
-
Eli Friedman authored
llvm-svn: 91149
-
John McCall authored
in a file context. In well-formed code, only happens with friend functions. Fixes PR 5760. llvm-svn: 91146
-
Douglas Gregor authored
llvm-svn: 91141
-
Douglas Gregor authored
informative chunk. llvm-svn: 91139
-
Douglas Gregor authored
llvm-svn: 91138
-
Douglas Gregor authored
llvm-svn: 91137
-
Eli Friedman authored
correctly. llvm-svn: 91136
-
Douglas Gregor authored
specializations and class template partial specializations (they're never named directly). Also, member access expressions only refer to value declarations (fields, functions, enumerators, etc.) and Objective-C property declarations; filter out everything else. llvm-svn: 91133
-
Anders Carlsson authored
llvm-svn: 91129
-
Anders Carlsson authored
llvm-svn: 91127
-
Douglas Gregor authored
llvm-svn: 91125
-