summaryrefslogtreecommitdiff
path: root/include/clang/Lex/DependencyDirectivesSourceMinimizer.h
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2019-07-18 22:33:14 +0000
committerAlex Lorenz <arphaman@gmail.com>2019-07-18 22:33:14 +0000
commit7f4b5247d9e4ea7cd86a0f5d411ad36a977482bb (patch)
tree2054e9d64f68a474691d4226bc138ace2bd2e92c /include/clang/Lex/DependencyDirectivesSourceMinimizer.h
parent59e94061205d2c3998288c000f48e682dcb97f66 (diff)
downloadclang-7f4b5247d9e4ea7cd86a0f5d411ad36a977482bb.tar.gz
[clang-scan-deps] Dependency directives source minimizer: handle #pragma once
We should re-emit `#pragma once` to ensure the preprocessor will still honor it when running on minimized sources. Differential Revision: https://reviews.llvm.org/D64945 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/DependencyDirectivesSourceMinimizer.h')
-rw-r--r--include/clang/Lex/DependencyDirectivesSourceMinimizer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Lex/DependencyDirectivesSourceMinimizer.h b/include/clang/Lex/DependencyDirectivesSourceMinimizer.h
index 41641078af..39ea396002 100644
--- a/include/clang/Lex/DependencyDirectivesSourceMinimizer.h
+++ b/include/clang/Lex/DependencyDirectivesSourceMinimizer.h
@@ -38,6 +38,7 @@ enum TokenKind {
pp_undef,
pp_import,
pp_pragma_import,
+ pp_pragma_once,
pp_include_next,
pp_if,
pp_ifdef,