llvm-project/clang/lib/AST
David Majnemer 2c4e00ac1c Sema: Diagnose improper application of inheritance keywords
We would previously allow inappropriate inheritance keywords to appear
on class declarations.  We would also allow inheritance keywords on
templates which were not fully specialized; this was divergent from
MSVC.

Differential Revision: http://llvm-reviews.chandlerc.com/D2585

llvm-svn: 200423
2014-01-29 22:07:36 +00:00
..
APValue.cpp Reapply r198845, reverted in r198849, with a fix to make it valid C++98, not 2014-01-10 00:40:45 +00:00
ASTConsumer.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
ASTContext.cpp Objective-C. provide legacy encoding of *id and *Class types 2014-01-28 20:41:15 +00:00
ASTDiagnostic.cpp Teach the diagnostics engine about the Attr type to make reporting on semantic attributes easier (and not require hard-coded strings). This requires a getSpelling() function on the Attr class, which is table-driven. Updates a handful of cases where a hard-coded string was being used to test the functionality out. Updating associated test cases for the improved quoting. 2013-12-26 18:30:57 +00:00
ASTDumper.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
ASTImporter.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
ASTTypeTraits.cpp Add Distance parameter to ASTNodeKind::isBaseOf. 2013-11-23 01:40:07 +00:00
AttrImpl.cpp Refactor the Microsoft inheritance attribute handling so that it no longer has special treatment. Also fixes a minor bug where the attributes were being parsed as though they were GNU-style attributes when they were in fact keyword attributes. 2013-12-18 23:44:18 +00:00
CMakeLists.txt Update RecursiveASTVisitor so that it visits attributes. This is currently 2013-12-30 17:24:36 +00:00
CXXABI.h [ms-cxxabi] Implement guard variables for static initialization 2013-09-10 20:14:30 +00:00
CXXInheritance.cpp Use pop_back_val() instead of both back() and pop_back(). 2013-08-23 16:11:15 +00:00
Comment.cpp Rename getResultLoc() too 2014-01-25 23:51:36 +00:00
CommentBriefParser.cpp Some refactoring in my patch on document 2013-03-02 02:39:57 +00:00
CommentCommandTraits.cpp Use llvm::array_lengthof to replace sizeof(array)/sizeof(array[0]). 2013-07-15 03:38:40 +00:00
CommentLexer.cpp CommentLexer: eliminate an NDEBUG from the headers 2013-12-07 13:51:26 +00:00
CommentParser.cpp Comment parsing: fix a bug where a line with whitespace between two paragraphs 2013-08-23 18:03:40 +00:00
CommentSema.cpp Comment parsing: don't crash while parsing \deprecated in a standalone comment 2014-01-27 17:55:43 +00:00
Decl.cpp Introduce and use Decl::getAsFunction() to simplify templated function checks 2014-01-22 07:29:52 +00:00
DeclBase.cpp Introduce and use Decl::getAsFunction() to simplify templated function checks 2014-01-22 07:29:52 +00:00
DeclCXX.cpp Introduce and use Decl::getAsFunction() to simplify templated function checks 2014-01-22 07:29:52 +00:00
DeclFriend.cpp Add class-specific operator new to Decl hierarchy. This guarantees that Decls 2013-11-22 09:01:48 +00:00
DeclGroup.cpp Sort all of Clang's files under 'lib', and fix up the broken headers 2012-12-04 09:13:33 +00:00
DeclObjC.cpp Remove obsolete ObjCMethodDecl arg_type iterator functions 2014-01-25 17:32:04 +00:00
DeclOpenMP.cpp Sort all the #include lines with LLVM's utils/sort_includes.py which 2014-01-07 11:51:46 +00:00
DeclPrinter.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
DeclTemplate.cpp Clean up variable template handling a bit, and correct the behavior of name 2014-01-16 23:39:20 +00:00
DeclarationName.cpp When formatting a C++-only declaration name, enable C++ mode in the formatter's 2014-01-22 00:27:42 +00:00
Expr.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
ExprCXX.cpp Introduce and use Decl::getAsFunction() to simplify templated function checks 2014-01-22 07:29:52 +00:00
ExprClassification.cpp PR17052 / DR1560 (+DR1550): In a conditional expression between a glvalue and a 2014-01-27 04:19:56 +00:00
ExprConstant.cpp PR18283: If a const variable of integral or enumeration type is 2014-01-25 20:50:08 +00:00
ExternalASTSource.cpp Simplify FindExternalVisibleDeclsByName by making it return a bool indicating 2013-02-07 03:30:24 +00:00
InheritViz.cpp Use llvm::sys::fs::createTemporaryFile. 2013-07-05 20:00:06 +00:00
ItaniumCXXABI.cpp Switch to the new MingW ABI. 2013-12-12 16:07:11 +00:00
ItaniumMangle.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
Makefile
Mangle.cpp Rename FunctionProtoType accessors from 'arguments' to 'parameters' 2014-01-20 20:26:09 +00:00
MangleNumberingContext.cpp Rename FunctionProtoType accessors from 'arguments' to 'parameters' 2014-01-20 20:26:09 +00:00
MicrosoftCXXABI.cpp Sema: Diagnose improper application of inheritance keywords 2014-01-29 22:07:36 +00:00
MicrosoftMangle.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
NSAPI.cpp Use None rather than Optional<T>() where possible. 2013-02-21 01:47:18 +00:00
NestedNameSpecifier.cpp Use pop_back_val() instead of both back() and pop_back(). 2013-08-23 16:11:15 +00:00
ParentMap.cpp [analyzer; new edges] Simplify edges in a C++11 for-range loop. 2013-06-06 21:53:45 +00:00
RawCommentList.cpp Refactor comment merging. 2013-09-28 15:06:27 +00:00
RecordLayout.cpp [ms-abi] Refactor Microsoft Record Layout 2014-01-09 00:30:56 +00:00
RecordLayoutBuilder.cpp Extensively comment bitfield layout, rearrange some 2014-01-29 07:53:44 +00:00
SelectorLocationsKind.cpp Fix crash when using archaic protocol, rdar://10238337 2011-10-05 21:28:06 +00:00
Stmt.cpp [OpenMP] Added parsing and semantic analysis for firstprivate clause 2013-10-01 05:32:34 +00:00
StmtIterator.cpp Simplify StmtIterator. 2013-06-27 20:39:04 +00:00
StmtPrinter.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
StmtProfile.cpp Eliminate UnaryTypeTraitExpr 2014-01-01 05:57:51 +00:00
StmtViz.cpp
TemplateBase.cpp Reduce sizeof(TemplateArgument) from 32 to 24. 2013-08-21 23:05:56 +00:00
TemplateName.cpp Add quotation marks to template names in diagnostics. 2013-03-05 06:21:38 +00:00
Type.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
TypeLoc.cpp AST: Don't treat a TemplateExpansion as a Template 2013-08-28 00:00:27 +00:00
TypePrinter.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00
VTTBuilder.cpp Remove get(V)BaseClassOffsetInBits, the CharUnit functions should be used instead. 2012-07-04 18:45:14 +00:00
VTableBuilder.cpp Rename getResultType() on function and method declarations to getReturnType() 2014-01-25 16:55:45 +00:00