summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LineEditor/LineEditor.cpp
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2015-03-03 23:58:09 +0000
committerJacques Pienaar <jpienaar@google.com>2015-03-03 23:58:09 +0000
commitb92e7a992d3333bd00bdfde072f7fdd021cf6065 (patch)
treecd08ccb798452b6d76eb44e71993f879653b1d3c /llvm/lib/LineEditor/LineEditor.cpp
parent9900a5d0372bfb2e345a0fafa2883f27ed2cb7f5 (diff)
downloadbcm5719-llvm-b92e7a992d3333bd00bdfde072f7fdd021cf6065.tar.gz
bcm5719-llvm-b92e7a992d3333bd00bdfde072f7fdd021cf6065.zip
TypePrinter print __restrict if not in C99 mode
restrict is a keyword in C99 but not in C++ while clang accepts __restrict for C++ code. Modify the TypePrinter to print __restrict when not processing C99 code. Printing restrict in C++ was problematic as printing the argument of int f(int * __restrict a) { ... } resulted in int *restrict a which is incorrect. http://reviews.llvm.org/D8048 llvm-svn: 231179
Diffstat (limited to 'llvm/lib/LineEditor/LineEditor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud