- Jul 14, 2011
-
-
Benjamin Kramer authored
llvm-svn: 135155
-
Caitlin Sadowski authored
llvm-svn: 135153
-
Ted Kremenek authored
llvm-svn: 135152
-
Chandler Carruth authored
llvm-svn: 135150
-
Chandler Carruth authored
NestedMacroInstantiations -> NestedMacroExpansions. With this change, libclang should be completely converted except for uses of SourceManger and SourceLocation APIs, and the C bindings for those APIs. llvm-svn: 135149
-
Chandler Carruth authored
macros in libclang. llvm-svn: 135148
-
Ted Kremenek authored
Add extra sanity checking in FormatString::matchesType() that we are comparing integers to integers. This happens not to be an issue now, but the extra check helps future proof in case of future refactorings. llvm-svn: 135147
-
Chandler Carruth authored
This is switches all the interfaces points (and most of the commenst / local variables I saw on my way through) regarding the NestedMacroInstantiations bit. The libclang enums corresponding to this state were renamed, but a legacy enum was added with the old name, and the same value to keep existing clients working. I've added a documentation blurb for it, but let me know if there is a canonical way to document legacy elemenst of the libclang interface. No functionality changed here, even in tests. llvm-svn: 135141
-
Chandler Carruth authored
MacroInstantiation -> MacroExpansion rename. Internally, everything is switched. Introduce a new cursor kind enum with the new name, but retain the old name as an alias so that we don't break backwards compatibility. Also update the debug printing routine to use 'macro expansions' as its explicitly not guaranteed to be stable, and mechanically switch the test cases over to that. llvm-svn: 135140
-
Chandler Carruth authored
variants to 'expand'. This changed a couple of public APIs, including one public type "MacroInstantiation" which is now "MacroExpansion". The rest of the codebase was updated to reflect this, especially the libclang code. Two of the C++ (and thus easily changed) libclang APIs were updated as well because they pertained directly to the old MacroInstantiation class. No functionality changed. llvm-svn: 135139
-
Chandler Carruth authored
'expand'. Also update the public API it provides to the new term, and propagate that update to the various clients. No functionality changed. llvm-svn: 135138
-
Chandler Carruth authored
to 'expand' for macros. Only comments and uses local to the TokenLexer are updated. No functionality changed. llvm-svn: 135137
-
Chandler Carruth authored
'[Ee]xpan(sion|ded)' in the TextDiagnosticPrinter. No functionality changed. llvm-svn: 135136
-
Chandler Carruth authored
and 'expansions' rather than 'instantiated' and 'contexts'. This is the first of several patches migrating Clang's terminology surrounding macros from 'instantiation' to 'expansion'. llvm-svn: 135135
-
Ted Kremenek authored
Reapply r135075, but modify format-strings.c and format-strings-fixit.c test cases to be more portable with an explicit target triple. llvm-svn: 135134
-
NAKAMURA Takumi authored
Revert r135075, "format string checking: long and int have the same widths on 32-bit, so we shouldn't warn about using" It fails on freebsd, mingw and msvc10. llvm-svn: 135129
-
Douglas Gregor authored
is still terrible here because typo correction is not behaving well in the presence of overloaded functions. llvm-svn: 135128
-
Argyrios Kyrtzidis authored
[arcmt] Make sure migrating to ARC works even if '-fobjc-arc' is included in command-line flags. rdar://9567824 llvm-svn: 135115
-
John McCall authored
rdar://problem/9768338 llvm-svn: 135104
-
Richard Smith authored
PR8800: When building a conversion to A& using a member operatorA&(), do not require A to be a complete type. llvm-svn: 135101
-
- Jul 13, 2011
-
-
Bruno Cardoso Lopes authored
llvm-svn: 135091
-
Douglas Gregor authored
parsing lambda expressions, from John Freeman! llvm-svn: 135090
-
Douglas Gregor authored
Uhrain! Fixes PR10318. llvm-svn: 135086
-
Devang Patel authored
llvm-svn: 135083
-
Ted Kremenek authored
format string checking: long and int have the same widths on 32-bit, so we shouldn't warn about using an "int" format specifier with a "long" type in 32-bit. llvm-svn: 135075
-
John McCall authored
it as used. Otherwise, we can fail to instantiate or validate the destructor, which can lead to crashes in IR gen like PR10351. llvm-svn: 135073
-
Argyrios Kyrtzidis authored
llvm-svn: 135067
-
Argyrios Kyrtzidis authored
[arcmt] For properties rewrite 'assign' -> 'weak or unsafe_unretained', 'retain' -> 'strong', and add 'weak or unsafe_unretained' when 'assign' is missing. rdar://9496219&9602589. llvm-svn: 135065
-
Fariborz Jahanian authored
used in @selector expression because, well, their implementation is optional. // rdar://9545564 llvm-svn: 135057
-
John McCall authored
llvm-svn: 135054
-
John McCall authored
__unknown_anytype, and rewrite such message sends correctly. I had to bite the bullet and actually add a debugger support mode for this one, which is a bit unfortunate, but there really isn't anything else I could imagine doing; this is clearly just debugger-specific behavior. llvm-svn: 135051
-
Fariborz Jahanian authored
Make it also available in ObjC++ propeties. Use common code for objc and objc++ so they don't diverge. // rdar://9740328 llvm-svn: 135050
-
Ted Kremenek authored
Re-relax conversion specifier checking for printf format strings and conversion specifiers. My recent change was a mistake. llvm-svn: 135048
-
Ted Kremenek authored
Fix inversion in argument type checking for format strings with conversion specifiers for character types. llvm-svn: 135046
-
John McCall authored
them, too. llvm-svn: 135038
-
John McCall authored
llvm-svn: 135036
-
John McCall authored
and (while I'm at it) teach it to grok the results of simple assignments. The first is PR10336. llvm-svn: 135034
-
John McCall authored
partial destruction. llvm-svn: 135033
-
Chris Lattner authored
i32. They almost always end up this way in the end anyway, and if we get lucky, this avoids generating some bitcasts. llvm-svn: 135032
-
Chris Lattner authored
like arguments. Thanks PR10337! :) llvm-svn: 135030
-