Chromium Code Reviews| Index: tools/clang/rewrite_to_chrome_style/tests/function-templates-expected.cc |
| diff --git a/tools/clang/rewrite_to_chrome_style/tests/function-templates-expected.cc b/tools/clang/rewrite_to_chrome_style/tests/function-templates-expected.cc |
| index 69a3349583038f79f237f6503c2bb9ef57f78056..f385c32b1c1b27f4df0cbbe9c1b4dca2dc38ffd8 100644 |
| --- a/tools/clang/rewrite_to_chrome_style/tests/function-templates-expected.cc |
| +++ b/tools/clang/rewrite_to_chrome_style/tests/function-templates-expected.cc |
| @@ -21,14 +21,11 @@ class Checked { |
| public: |
| template <typename U, typename V> |
| Checked(const Checked<U, V>& rhs) { |
| - // This (incorrectly) doesn't get rewritten, since it's not instantiated. In |
| - // this case, the AST representation contains a bunch of |
| - // CXXDependentScopeMemberExpr nodes. |
| - if (rhs.hasOverflowed()) |
| - this->overflowed(); |
| - if (!IsInBounds<T>(rhs.m_value)) |
| - this->overflowed(); |
| - value_ = static_cast<T>(rhs.m_value); |
| + if (rhs.HasOverflowed()) |
| + this->Overflowed(); |
| + if (!IsInBounds<T>(rhs.value_)) |
| + this->Overflowed(); |
| + value_ = static_cast<T>(rhs.value_); |
|
Łukasz Anforowicz
2016/08/17 22:45:09
Ha! This is the "m_" heuristic in effect - seems
|
| } |
| bool HasOverflowed() const { return false; } |