llvm-project/clang/lib/Sema
Argyrios Kyrtzidis 7272d9cf36 Implement -Woverloaded-virtual.
The difference with gcc is that it warns if you overload virtual methods only if
the method doesn't also override any method. This is to cut down on the number of warnings
and make it more useful like reported here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20423.
If we want to warn that not all overloads are overriden we can have an additional
warning like -Wpartial-override.

-Woverloaded-virtual, unlike gcc, is added to -Wmost. Addresses rdar://8757630.

llvm-svn: 124805
2011-02-03 18:01:15 +00:00
..
AnalysisBasedWarnings.cpp Based on user feedback, swap -Wuninitialized diagnostics to have the warning refer to the bad use, and the note to the variable declaration. 2011-02-02 23:35:53 +00:00
AttributeList.cpp Revert r124217 because it didn't catch the actual error case it was trying to 2011-01-27 19:17:54 +00:00
CMakeLists.txt Move the work-in-progress implementation of variadic templates to its own file in Sema. No functionality change. 2010-12-15 17:38:57 +00:00
CodeCompleteConsumer.cpp Revert r124704, which uniqued code-completion strings. The space 2011-02-02 19:04:30 +00:00
DeclSpec.cpp Rvalue references for *this: parse ref-qualifiers. 2011-01-26 03:43:54 +00:00
IdentifierResolver.cpp Rename DeclContext::getLookupContext to getRedeclContext and change its semantics slightly. No functionality change in the absence of inline namespaces. Also, change a few places where inline namespaces actually make a difference to be prepared for them. 2010-08-31 00:36:30 +00:00
JumpDiagnostics.cpp Implement an indirect-goto optimization for goto *&&lbl and respect this 2010-10-28 08:53:48 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
Sema.cpp Perform the bad-address-space conversions check as part of 2011-02-01 00:10:29 +00:00
SemaAccess.cpp Minor whitespace and comment fixes. No functionality change. 2010-11-28 22:53:37 +00:00
SemaAttr.cpp Allow #pragma unused to be used on global variables like gcc. Fixes rdar://8793832. 2011-01-27 18:16:48 +00:00
SemaCXXCast.cpp Fix a horrible bug in our handling of C-style casting, where a C-style 2011-01-27 00:58:17 +00:00
SemaCXXScopeSpec.cpp Change QualType::getTypePtr() to return a const pointer, then change a 2011-01-19 06:33:43 +00:00
SemaChecking.cpp An insomniac stab at making block declarations list the variables they close 2011-02-02 13:00:07 +00:00
SemaCodeComplete.cpp Create a special allocator class for code completion, so that all of 2011-02-01 22:57:45 +00:00
SemaDecl.cpp Implement -Woverloaded-virtual. 2011-02-03 18:01:15 +00:00
SemaDeclAttr.cpp Give OpaqueValueExpr a source location, because its source location 2011-01-28 02:26:04 +00:00
SemaDeclCXX.cpp Implement -Woverloaded-virtual. 2011-02-03 18:01:15 +00:00
SemaDeclObjC.cpp Renamed CXXBaseOrMemberInitializer to CXXCtorInitializer. This is both shorter, 2011-01-08 20:30:50 +00:00
SemaExceptionSpec.cpp Added missing IgnoreParens(). 2010-12-14 22:11:44 +00:00
SemaExpr.cpp More capturing of 'this': implicit member expressions. Getting that 2011-02-03 08:15:49 +00:00
SemaExprCXX.cpp More capturing of 'this': implicit member expressions. Getting that 2011-02-03 08:15:49 +00:00
SemaExprObjC.cpp Capture a few implicit references to 'self'. 2011-02-03 09:00:02 +00:00
SemaInit.cpp When initializing struct members, the important thing is that the "initializing" expression is 2011-02-01 00:52:10 +00:00
SemaLookup.cpp Fix whitespace. 2011-01-27 07:10:08 +00:00
SemaObjCProperty.cpp Improve the diagnostic for -Wcustom-atomic-properties. Suggestion by Fariborz! 2011-01-31 23:20:03 +00:00
SemaOverload.cpp Implement reasonable conversion ranking for Objective-C pointer 2011-01-31 18:51:41 +00:00
SemaStmt.cpp Fix whitespace. 2011-01-27 07:10:08 +00:00
SemaTemplate.cpp Fix whitespace. 2011-01-27 07:10:08 +00:00
SemaTemplateDeduction.cpp Fix whitespace. 2011-01-27 07:10:08 +00:00
SemaTemplateInstantiate.cpp Teach the evaluation of the __is_convertible_to trait to translate 2011-01-27 22:31:44 +00:00
SemaTemplateInstantiateDecl.cpp The code trying to assign a typedef to an anonymous tag declaration was 2011-02-01 08:20:08 +00:00
SemaTemplateVariadic.cpp Null initialize a few variables flagged by 2011-01-23 17:04:59 +00:00
SemaType.cpp Implement the suggested resolution to core issue 547, extended to also 2011-01-31 16:09:46 +00:00
TargetAttributesSema.cpp 1. Add some ABI information for the Microblaze. 2010-12-19 19:57:51 +00:00
TargetAttributesSema.h Remove Sema.h's dependency on DeclCXX.h. 2010-08-25 07:42:41 +00:00
TreeTransform.h Rvalue references for *this: 2011-01-26 05:01:58 +00:00
TypeLocBuilder.h Make TypeLocBuilder an implementation detail of Sema. Nobody else should be using it 2010-12-02 00:05:49 +00:00