]> granicus.if.org Git - clang/commit
Remove OpenCL-specific type keywords and specifiers
authorAlp Toker <alp@nuanti.com>
Wed, 18 Dec 2013 15:29:05 +0000 (15:29 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 18 Dec 2013 15:29:05 +0000 (15:29 +0000)
commite0738f6c43c9c92c13613fa08a85b04b7505f7ea
tree6420f935cb01f3dc338860a2aaf4f6dc703e5e18
parent24215ff299d4eb3be3559b96515a4489737fbc2f
Remove OpenCL-specific type keywords and specifiers

This commit kills off custom type specifier and keyword handling of OpenCL C
data types.

Although the OpenCL spec describes them as keywords, we can handle them more
elegantly as predefined types. This should provide better error correction and
code completion as well as simplifying the implementation.

The primary intention is however to simplify the C/C++ parser and save some
packed bits on AST structures that had been extended in r170432 just for
OpenCL.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197578 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Specifiers.h
include/clang/Basic/TokenKinds.def
include/clang/Sema/DeclSpec.h
include/clang/Sema/Sema.h
lib/Parse/ParseDecl.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/ParseTentative.cpp
lib/Sema/DeclSpec.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaTemplateVariadic.cpp
lib/Sema/SemaType.cpp