summaryrefslogtreecommitdiff
path: root/clang/lib/Format/UnwrappedLineParser.h
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-11-04 12:41:02 +0000
committerDaniel Jasper <djasper@google.com>2014-11-04 12:41:02 +0000
commitd0ec0d62d67a89084bd299f5162446b89e6ef072 (patch)
tree4a1f9acc562cf9fc4e51648e590bdb83811ff629 /clang/lib/Format/UnwrappedLineParser.h
parentc1f30877e0357a2513fdf4f99a90cfc35be6572e (diff)
downloadllvm-d0ec0d62d67a89084bd299f5162446b89e6ef072.tar.gz
clang-format: Use identifier table for keywords in other languages.
Slightly easier to write, more efficient and prevents bugs by misspelling them. No functional changes intended. llvm-svn: 221259
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.h')
-rw-r--r--clang/lib/Format/UnwrappedLineParser.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.h b/clang/lib/Format/UnwrappedLineParser.h
index d2f17e015c8a..f047540cf5f7 100644
--- a/clang/lib/Format/UnwrappedLineParser.h
+++ b/clang/lib/Format/UnwrappedLineParser.h
@@ -60,7 +60,9 @@ class FormatTokenSource;
class UnwrappedLineParser {
public:
- UnwrappedLineParser(const FormatStyle &Style, ArrayRef<FormatToken *> Tokens,
+ UnwrappedLineParser(const FormatStyle &Style,
+ const AdditionalKeywords &Keywords,
+ ArrayRef<FormatToken *> Tokens,
UnwrappedLineConsumer &Callback);
/// Returns true in case of a structural error.
@@ -158,6 +160,8 @@ private:
bool StructuralError;
const FormatStyle &Style;
+ const AdditionalKeywords &Keywords;
+
FormatTokenSource *Tokens;
UnwrappedLineConsumer &Callback;