| Index: tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
|
| diff --git a/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp b/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
|
| index 83c6eb22e6270c918918efe1d359a41be0b4d2ba..aa7d447c595e5f61cf3df836ac5ffedef1e67b8c 100644
|
| --- a/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
|
| +++ b/tools/clang/rewrite_to_chrome_style/RewriteToChromeStyle.cpp
|
| @@ -330,6 +330,11 @@ bool IsProbablyConst(const clang::VarDecl& decl,
|
| if (type.isVolatileQualified())
|
| return false;
|
|
|
| + // Parameters should not be renamed to |kFooBar| style (even if they are
|
| + // const and have an initializer (aka default value)).
|
| + if (clang::isa<clang::ParmVarDecl>(&decl))
|
| + return false;
|
| +
|
| // http://google.github.io/styleguide/cppguide.html#Constant_Names
|
| // Static variables that are const-qualified should use kConstantStyle naming.
|
| if (decl.getStorageDuration() == clang::SD_Static)
|
|
|