piotrdz marked an inline comment as done.
piotrdz added a comment.

Now this issue with templates is a bit difficult for me. I tried everything 
that seems to have made sense, but I still get output like this:

  
/work/clang-trunk/clang-tools-extra/test/clang-tidy/readability-inconsistent-declaration-parameter-name.cpp:47:6:
 warning: function 'templateFunction' has other declaration with different 
parameter name [readability-inconsistent-declaration-parameter-name]
  void templateFunction(float b)
       ^
  
/work/clang-trunk/clang-tools-extra/test/clang-tidy/readability-inconsistent-declaration-parameter-name.cpp:47:6:
 note: other declaration seen here
  void templateFunction(float b)
       ^
  
/work/clang-trunk/clang-tools-extra/test/clang-tidy/readability-inconsistent-declaration-parameter-name.cpp:47:29:
 note: parameter 1 is named 'b' here, but 'a' in other declaration
  void templateFunction(float b)
                              ^

But I'd like to get output like this:

  
/work/clang-trunk/clang-tools-extra/test/clang-tidy/readability-inconsistent-declaration-parameter-name.cpp:47:6:
 warning: function 'templateFunction<float>' has other declaration with 
different parameter name [readability-inconsistent-declaration-parameter-name]
  void templateFunction(float b)
       ^
  
/work/clang-trunk/clang-tools-extra/test/clang-tidy/readability-inconsistent-declaration-parameter-name.cpp:47:6:
 note: other declaration seen here
  void templateFunction(T a);
       ^
  
/work/clang-trunk/clang-tools-extra/test/clang-tidy/readability-inconsistent-declaration-parameter-name.cpp:47:29:
 note: parameter 1 is named 'b' here, but 'a' in other declaration
  void templateFunction(float b)
                              ^


http://reviews.llvm.org/D12462



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to