summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Lex/PPCaching.cpp16
-rw-r--r--clang/test/CodeGen/cxx-value-init.cpp14
2 files changed, 15 insertions, 15 deletions
diff --git a/clang/lib/Lex/PPCaching.cpp b/clang/lib/Lex/PPCaching.cpp
index 7ba5e45afab..822b207cdcb 100644
--- a/clang/lib/Lex/PPCaching.cpp
+++ b/clang/lib/Lex/PPCaching.cpp
@@ -15,14 +15,14 @@
#include "clang/Lex/Preprocessor.h"
using namespace clang;
-/// EnableBacktrackAtThisPos - From the point that this method is called, and
-/// until CommitBacktrackedTokens() or Backtrack() is called, the Preprocessor
-/// keeps track of the lexed tokens so that a subsequent Backtrack() call will
-/// make the Preprocessor re-lex the same tokens.
-///
-/// Nested backtracks are allowed, meaning that EnableBacktrackAtThisPos can
-/// be called multiple times and CommitBacktrackedTokens/Backtrack calls will
-/// be combined with the EnableBacktrackAtThisPos calls in reverse order.
+/// EnableBacktrackAtThisPos - From the point that this method is called, and
+/// until CommitBacktrackedTokens() or Backtrack() is called, the Preprocessor
+/// keeps track of the lexed tokens so that a subsequent Backtrack() call will
+/// make the Preprocessor re-lex the same tokens.
+///
+/// Nested backtracks are allowed, meaning that EnableBacktrackAtThisPos can
+/// be called multiple times and CommitBacktrackedTokens/Backtrack calls will
+/// be combined with the EnableBacktrackAtThisPos calls in reverse order.
void Preprocessor::EnableBacktrackAtThisPos() {
CacheTokens = true;
BacktrackPositions.push_back(CachedLexPos);
diff --git a/clang/test/CodeGen/cxx-value-init.cpp b/clang/test/CodeGen/cxx-value-init.cpp
index b1cddd913fb..50e08dba02d 100644
--- a/clang/test/CodeGen/cxx-value-init.cpp
+++ b/clang/test/CodeGen/cxx-value-init.cpp
@@ -1,11 +1,11 @@
// RUN: clang -emit-llvm %s -o %t
-enum E {};
-int v1 = E();
-float v2 = float();
-
-void f() {
- int v3 = int();
+enum E {};
+int v1 = E();
+float v2 = float();
+
+void f() {
+ int v3 = int();
_Complex int v4 = typeof(_Complex int)();
_Complex float v5 = typeof(_Complex float)();
-}
+}
OpenPOWER on IntegriCloud