llvm-project/clang/lib/Parse
Nick Desaulniers 150ca5309e [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn
Summary:
For types deduced from typedef's and typeof's, don't warn for duplicate
declaration specifiers in C90 unless -pedantic.

Create a third diagnostic type for duplicate declaration specifiers.
Previously, we had an ExtWarn and a Warning. This change adds a third,
Extension, which only warns when -pedantic is set, staying silent
otherwise.

Fixes PR32985.

Reviewers: rsmith

Reviewed By: rsmith

Subscribers: srhines, cfe-commits

Differential Revision: https://reviews.llvm.org/D52849

llvm-svn: 343740
2018-10-03 23:09:29 +00:00
..
CMakeLists.txt
ParseAST.cpp [clang-cl, PCH] Support for /Yc and /Yu without filename and #pragma hdrstop 2018-09-11 17:10:44 +00:00
ParseCXXInlineMethods.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ParseDecl.cpp [SEMA] split ExtWarn dupl-decl-spec's into Extension and ExtWarn 2018-10-03 23:09:29 +00:00
ParseDeclCXX.cpp [CodeCompletion] Enable signature help when initializing class/struct/union members. 2018-09-11 15:02:18 +00:00
ParseExpr.cpp [CodeComplete] Generate completion fix-its for C code as well 2018-09-21 11:23:22 +00:00
ParseExprCXX.cpp [cxx2a] P0614R1: Support init-statements in range-based for loops. 2018-09-28 18:44:09 +00:00
ParseInit.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ParseObjc.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
ParseOpenMP.cpp [OPENMP] Add reverse_offload clause to requires directive 2018-10-03 20:07:58 +00:00
ParsePragma.cpp We have in place support for parsing #pragma FENV_ACCESS, but that 2018-08-14 17:06:56 +00:00
ParseStmt.cpp [cxx2a] P0614R1: Support init-statements in range-based for loops. 2018-09-28 18:44:09 +00:00
ParseStmtAsm.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
ParseTemplate.cpp [CUDA] Fixed parsing of optional template-argument-list. 2018-09-21 17:46:28 +00:00
ParseTentative.cpp [cxx2a] P0614R1: Support init-statements in range-based for loops. 2018-09-28 18:44:09 +00:00
Parser.cpp [CodeComplete] Add completions for filenames in #include directives. 2018-09-18 08:40:41 +00:00