Commit 610fa96
cpplint: make it possible to run outside git repo
cpplint uses the top-level .git directory to determine what the root is
for #include guards. If it doesn't find a .git directory, it walks up
all the way to the system root and subsequently complains that guards
must be written as HOME_USER_SRC_NODE_SRC_FILENAME_H_.
This commit replaces the .git-based path munging with a fixed root path
relative to the location of the cpplint script, making it possible to
successfully run `make test` from an extracted tarball.
Fixes: #2693
PR-URL: #2710
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>1 parent 118f48c commit 610fa96Copy full SHA for 610fa96
File tree
Expand file treeCollapse file tree
1 file changed
+4
-31
lines changedOpen diff view settings
Filter options
- tools
Expand file treeCollapse file tree
1 file changed
+4
-31
lines changedOpen diff view settings
Collapse file
+4-31Lines changed: 4 additions & 31 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
695 | 695 | |
696 | 696 | |
697 | 697 | |
698 | | - |
699 | | - |
700 | | - |
701 | | - |
702 | | - |
703 | | - |
704 | | - |
705 | | - |
706 | | - |
707 | | - |
708 | | - |
709 | | - |
710 | | - |
711 | | - |
712 | | - |
713 | | - |
714 | | - |
715 | | - |
716 | | - |
717 | | - |
718 | | - |
719 | | - |
720 | | - |
721 | | - |
722 | | - |
723 | | - |
724 | | - |
725 | | - |
726 | | - |
727 | | - |
728 | | - |
| 698 | + |
| 699 | + |
| 700 | + |
| 701 | + |
729 | 702 | |
730 | 703 | |
731 | 704 | |
|
0 commit comments