Skip to content

Commit

Permalink
Rename parsers.* to manifest_parser.*
Browse files Browse the repository at this point in the history
So it matches with the class name in there.

Signed-off-by: Thiago Farina <tfarina@chromium.org>
  • Loading branch information
tfarina committed Jul 9, 2012
1 parent 0ca93ba commit 3baedf1
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions configure.py
Expand Up @@ -236,8 +236,8 @@ def shell_escape(str):
'graph',
'graphviz',
'lexer',
'manifest_parser',
'metrics',
'parsers',
'state',
'util']:
objs += cxx(name)
Expand Down Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions misc/ninja.vim
Expand Up @@ -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
Expand All @@ -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\>"
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/build_log_perftest.cc
Expand Up @@ -17,7 +17,7 @@

#include "build_log.h"
#include "graph.h"
#include "parsers.h"
#include "manifest_parser.h"
#include "state.h"
#include "util.h"

Expand Down
2 changes: 1 addition & 1 deletion src/graph.cc
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/parsers.cc → src/manifest_parser.cc
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions src/parsers.h → src/manifest_parser.h
Expand Up @@ -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>
Expand Down Expand Up @@ -68,4 +68,4 @@ struct ManifestParser {
Lexer lexer_;
};

#endif // NINJA_PARSERS_H_
#endif // NINJA_MANIFEST_PARSER_H_
2 changes: 1 addition & 1 deletion src/parsers_test.cc → src/manifest_parser_test.cc
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion src/ninja.cc
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion src/test.cc
Expand Up @@ -19,7 +19,7 @@
#include <errno.h>

#include "build_log.h"
#include "parsers.h"
#include "manifest_parser.h"
#include "util.h"

#ifdef _WIN32
Expand Down

0 comments on commit 3baedf1

Please sign in to comment.