Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(762)

Unified Diff: tools/clang/rewrite_to_chrome_style/tests/template-original.cc

Issue 1645243002: rewrite_to_chrome_style: Avoid asserts when checking for const-ness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/template-expected.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/rewrite_to_chrome_style/tests/template-original.cc
diff --git a/tools/clang/rewrite_to_chrome_style/tests/template-original.cc b/tools/clang/rewrite_to_chrome_style/tests/template-original.cc
new file mode 100644
index 0000000000000000000000000000000000000000..39ae4e5efbf726abe3dfc5e29cea2c4a5a138ff8
--- /dev/null
+++ b/tools/clang/rewrite_to_chrome_style/tests/template-original.cc
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+namespace blink {
+
+template <typename T, int number>
+void F() {
+ // We don't assert on this, and we don't end up considering it a const for
+ // now.
+ const int maybe_a_const = sizeof(T);
+ const int is_a_const = number;
+}
+
+template <int number, typename... T>
+void F() {
+ // We don't assert on this, and we don't end up considering it a const for
+ // now.
+ const int maybe_a_const = sizeof...(T);
+ const int is_a_const = number;
+}
+
+} // namespace blink
« no previous file with comments | « tools/clang/rewrite_to_chrome_style/tests/template-expected.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698