diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2015-03-03 23:58:09 +0000 |
|---|---|---|
| committer | Jacques Pienaar <jpienaar@google.com> | 2015-03-03 23:58:09 +0000 |
| commit | b92e7a992d3333bd00bdfde072f7fdd021cf6065 (patch) | |
| tree | cd08ccb798452b6d76eb44e71993f879653b1d3c /llvm/lib/LineEditor/LineEditor.cpp | |
| parent | 9900a5d0372bfb2e345a0fafa2883f27ed2cb7f5 (diff) | |
| download | bcm5719-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

