https://bugs.llvm.org/show_bug.cgi?id=33759
Bug ID: 33759
Summary: clang-format-diff.py refex does not match correct file
name
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: sauravshekha...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
I am trying to use the clang-format-diff
(clang/tools/clang-format/clang-format-diff.py). In the current master version,
regex at line 68 of the file seems to capture the wrong filename. To elaborate,
this is an example output for `git diff -U0 HEAD^` command on my machine:
--- a/tmva/tmva/inc/TMVA/DNN/RNN/RNNLayer.h
+++ b/tmva/tmva/inc/TMVA/DNN/RNN/RNNLayer.h
@@ -29,2 +29,2 @@
-#ifndef TMVA_DNN_RNN_CELL
-#define TMVA_DNN_RNN_CELL
+#ifndef TMVA_DNN_RNN_LAYER
+#define TMVA_DNN_RNN_LAYER
@@ -55 +55 @@ template<typename Architecture_t>
On this output, the filename matcher is capturing filename as
b/tmva/tmva/inc/TMVA/DNN/RNN/RNNLayer.h while it should actually capture
tmva/tmva/inc/TMVA/DNN/RNN/RNNLayer.h
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs