| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 92725
|
| |
|
|
| |
llvm-svn: 92724
|
| |
|
|
|
|
| |
function is virtual. Fixes PR5940.
llvm-svn: 92680
|
| |
|
|
| |
llvm-svn: 92678
|
| |
|
|
| |
llvm-svn: 92677
|
| |
|
|
| |
llvm-svn: 92676
|
| |
|
|
|
|
| |
Essentially treat 'this' as a implicit parameter to the method call, and associate a region with it.
llvm-svn: 92675
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
assembly code. This avoids changing the bahvior when normal asm("")
statements are used.
The type of code affected would be:
void* t4(void) { __asm mov eax, fs:[0x10] }
I hope people like this version, if not, let me know.
llvm-svn: 92531
|
| |
|
|
|
|
|
| |
whose operands are non-negative integer constant expressions. This comes up
in LLVM in a few places.
llvm-svn: 92525
|
| |
|
|
|
|
| |
types. Fixes APFloat.cpp compilation failure.
llvm-svn: 92523
|
| |
|
|
|
|
|
|
| |
definitions from a precompiled header. This ensures that
code-completion with macro names behaves the same with or without
precompiled headers.
llvm-svn: 92497
|
| |
|
|
| |
llvm-svn: 92493
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
interface, suggest correction of typos. For example, given:
@interface NSString
@end
@implementation NSstring
@end
we'll warn with:
t.m:4:19: warning: cannot find interface declaration for 'NSstring';
did you mean 'NSString'?
@implementation NSstring
^
However, since this is just a warning, we don't provide a fix-it
hint. Good idea, Ted!
llvm-svn: 92488
|
| |
|
|
|
|
| |
any side-effects.
llvm-svn: 92453
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
constructs:
- Instance variable lookup ("foo->ivar" and, in instance methods, "ivar")
- Property name lookup ("foo.prop")
- Superclasses
- Various places where a class name is required
- Protocol names (e.g., id<proto>)
This seems to cover many of the common places where typos could occur.
llvm-svn: 92449
|
| |
|
|
| |
llvm-svn: 92441
|
| |
|
|
| |
llvm-svn: 92440
|
| |
|
|
| |
llvm-svn: 92435
|
| |
|
|
|
|
| |
coverage.
llvm-svn: 92433
|
| |
|
|
| |
llvm-svn: 92430
|
| |
|
|
|
|
| |
aren't yet used in the ctors/dtors, but that will follow.
llvm-svn: 92409
|
| |
|
|
|
|
| |
parents of out-of-line function contexts
llvm-svn: 92397
|
| |
|
|
| |
llvm-svn: 92396
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
class), provide a suggestion for the type or class found. However,
since we can't recover properly in this case, don't provide a fix-it
hint. Example:
test/FixIt/typo.m:8:3: error: use of undeclared identifier 'NSstring';
did you
mean 'NSString'?
NSstring *str = @"A string";
...
^
1 diagnostic generated.
llvm-svn: 92379
|
| |
|
|
|
|
|
|
|
|
| |
test/FixIt/typo.c:19:4: error: field designator 'bunds' does not refer to any
field in type 'struct Window'; did you mean 'bounds'?
.bunds.
^~~~~
bounds
llvm-svn: 92376
|
| |
|
|
|
|
| |
weak_odr linkage.
llvm-svn: 92371
|
| |
|
|
|
|
| |
covariant. Fixes PR5920.
llvm-svn: 92365
|
| |
|
|
|
|
| |
now. Between rtti-layout.cpp and rtti-linkage.cpp, RTTI testing should be covered.
llvm-svn: 92361
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
test/FixIt/typo.cpp:41:15: error: initializer 'base' does not name a non-static
data member or base class; did you mean the base class 'Base'?
Derived() : base(),
^~~~
Base
test/FixIt/typo.cpp:42:15: error: initializer 'ember' does not name a non-static
data member or base class; did you mean the member 'member'?
ember() { }
^~~~~
member
llvm-svn: 92355
|
| |
|
|
| |
llvm-svn: 92351
|
| |
|
|
|
|
|
|
|
|
| |
typo.cpp:18:1: error: use of undeclared identifier 'other_std'; did
you mean 'otherstd'?
other_std::strng str1;
^~~~~~~~~
otherstd
llvm-svn: 92350
|
| |
|
|
|
|
|
|
|
|
| |
typo.cpp:27:8: error: no template named 'basic_sting' in namespace 'std';
did you mean 'basic_string'?
std::basic_sting<char> b2;
~~~~~^~~~~~~~~~~
basic_string
llvm-svn: 92348
|
| |
|
|
|
|
| |
s.fnd("hello")
llvm-svn: 92345
|
| |
|
|
|
|
|
|
|
| |
Add new states for symbolic regions tracked by malloc checker. This enables us
to do malloc checking more accurately. See test case.
Based on Lei Zhang's patch and discussion.
llvm-svn: 92342
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
typo.cpp:22:10: error: use of undeclared identifier 'radious'; did
you mean 'radius'?
return radious * pi;
^~~~~~~
radius
This was super-easy, since we already had decent recovery by looking
for names in dependent base classes.
llvm-svn: 92341
|
| |
|
|
|
|
|
| |
not emitting a follow-on error about 'int', which the user
never wrote. PR5924.
llvm-svn: 92339
|
| |
|
|
| |
llvm-svn: 92319
|
| |
|
|
| |
llvm-svn: 92317
|
| |
|
|
|
|
| |
C++2.13.2p2: "A wide-character literal has type wchar_t"
llvm-svn: 92313
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tring str2;
we produce the following diagnostic + fix-it:
typo.cpp:15:1: error: unknown type name 'tring'; did you mean 'string'?
tring str2;
^~~~~
string
To make this really useful, we'll need to introduce typo correction in
many more places (wherever we do name lookup), and implement
declaration-vs-expression heuristics that cope with typos
better. However, for now this will handle the simple cases where we
already get good "unknown type name" diagnostics.
The LookupVisibleDecls functions are intended to be used by code
completion as well as typo correction; that refactoring will happen
later.
llvm-svn: 92308
|
| |
|
|
|
|
|
|
|
|
|
|
| |
QualType to get CVR-qualifiers through array types, and switches the primary
comparison methods to use it. This may allow simplifying some of the callers of
getUnqualifiedArrayType.
Also fix the normalizing of CV-qualification during template deduction to
normalize through arrays and allow a more qualified deduced array type. This
fixes PR5911.
llvm-svn: 92289
|
| |
|
|
| |
llvm-svn: 92286
|
| |
|
|
| |
llvm-svn: 92285
|
| |
|
|
| |
llvm-svn: 92284
|
| |
|
|
|
|
| |
the AST lest we run into some crazy canonicalization bug like PR5874.
llvm-svn: 92283
|
| |
|
|
| |
llvm-svn: 92282
|
| |
|
|
| |
llvm-svn: 92276
|
| |
|
|
| |
llvm-svn: 92266
|
| |
|
|
|
|
|
|
| |
CV-qualifiers. Remove an error expectation from the 'good' set of const-cast
test cases. With this patch, the final non-template test case from PR5542
passes. (It's the same as the one already in const-cast.cpp.)
llvm-svn: 92257
|
| |
|
|
| |
llvm-svn: 92251
|