Skip to content
Browse files

Rename parsers.* to manifest_parser.*

So it matches with the class name in there.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
  • Loading branch information...
1 parent 0ca93ba commit 3baedf17677e5d8f0c248d950e0681a0f5668992 @tfarina tfarina committed
View
4 configure.py
@@ -236,8 +236,8 @@ def shell_escape(str):
'graph',
'graphviz',
'lexer',
+ 'manifest_parser',
'metrics',
- 'parsers',
'state',
'util']:
objs += cxx(name)
@@ -305,7 +305,7 @@ def shell_escape(str):
'edit_distance_test',
'graph_test',
'lexer_test',
- 'parsers_test',
+ 'manifest_parser_test',
'state_test',
'subprocess_test',
'test',
View
6 misc/ninja.vim
@@ -10,7 +10,7 @@
" ninja lexer and parser are at
" https://github.com/martine/ninja/blob/master/src/lexer.in.cc
-" https://github.com/martine/ninja/blob/master/src/parsers.cc
+" https://github.com/martine/ninja/blob/master/src/manifest_parser.cc
if exists("b:current_syntax")
finish
@@ -22,7 +22,7 @@ syn match ninjaComment /#.*/ contains=@Spell
" Toplevel statements are the ones listed here and
" toplevel variable assignments (ident '=' value).
-" lexer.in.cc, ReadToken() and parsers.cc, Parse()
+" lexer.in.cc, ReadToken() and manifest_parser.cc, Parse()
syn match ninjaKeyword "^build\>"
syn match ninjaKeyword "^rule\>"
syn match ninjaKeyword "^default\>"
@@ -33,7 +33,7 @@ syn match ninjaKeyword "^subninja\>"
" on the first line without indent. 'rule' allows only a
" limited set of magic variables, 'build' allows general
" let assignments.
-" parsers.cc, ParseRule()
+" manifest_parser.cc, ParseRule()
syn region ninjaRule start="^rule" end="^\ze\S" contains=ALL transparent
syn keyword ninjaRuleCommand contained command depfile description generator restat
View
2 src/build_log_perftest.cc
@@ -17,7 +17,7 @@
#include "build_log.h"
#include "graph.h"
-#include "parsers.h"
+#include "manifest_parser.h"
#include "state.h"
#include "util.h"
View
2 src/graph.cc
@@ -21,8 +21,8 @@
#include "depfile_parser.h"
#include "disk_interface.h"
#include "explain.h"
+#include "manifest_parser.h"
#include "metrics.h"
-#include "parsers.h"
#include "state.h"
#include "util.h"
View
2 src/parsers.cc → src/manifest_parser.cc
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "parsers.h"
+#include "manifest_parser.h"
#include <assert.h>
#include <errno.h>
View
6 src/parsers.h → src/manifest_parser.h
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef NINJA_PARSERS_H_
-#define NINJA_PARSERS_H_
+#ifndef NINJA_MANIFEST_PARSER_H_
+#define NINJA_MANIFEST_PARSER_H_
#include <string>
#include <vector>
@@ -68,4 +68,4 @@ struct ManifestParser {
Lexer lexer_;
};
-#endif // NINJA_PARSERS_H_
+#endif // NINJA_MANIFEST_PARSER_H_
View
2 src/parsers_test.cc → src/manifest_parser_test.cc
@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "parsers.h"
+#include "manifest_parser.h"
#include <gtest/gtest.h>
View
2 src/ninja.cc
@@ -42,8 +42,8 @@
#include "explain.h"
#include "graph.h"
#include "graphviz.h"
+#include "manifest_parser.h"
#include "metrics.h"
-#include "parsers.h"
#include "state.h"
#include "util.h"
View
2 src/test.cc
@@ -19,7 +19,7 @@
#include <errno.h>
#include "build_log.h"
-#include "parsers.h"
+#include "manifest_parser.h"
#include "util.h"
#ifdef _WIN32

0 comments on commit 3baedf1

Please sign in to comment.
Something went wrong with that request. Please try again.