Make include guards pass cpplint

This commit is contained in:
Max Brunsfeld 2014-03-09 22:05:17 -07:00
parent 10b1bd0f5c
commit 31a58bc7e4
33 changed files with 112 additions and 112 deletions

View file

@ -1,5 +1,5 @@
#ifndef tree_sitter_compiler_h
#define tree_sitter_compiler_h
#ifndef TREE_SITTER_COMPILER_H_
#define TREE_SITTER_COMPILER_H_
#include <vector>
#include <map>
@ -37,4 +37,4 @@ namespace tree_sitter {
std::string compile(const Grammar &grammar, std::string name);
}
#endif
#endif // TREE_SITTER_COMPILER_H_

View file

@ -1,14 +1,14 @@
#ifndef tree_sitter_parser_h
#define tree_sitter_parser_h
#ifndef TREE_SITTER_PARSER_H_
#define TREE_SITTER_PARSER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "./runtime.h"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "tree_sitter/runtime.h"
//#define TS_DEBUG_PARSE
//#define TS_DEBUG_LEX
@ -310,4 +310,4 @@ return ts_parser_tree(parser);
}
#endif
#endif
#endif // TREE_SITTER_PARSER_H_

View file

@ -1,5 +1,5 @@
#ifndef tree_sitter_runtime_h
#define tree_sitter_runtime_h
#ifndef TREE_SITTER_RUNTIME_H_
#define TREE_SITTER_RUNTIME_H_
#ifdef __cplusplus
extern "C" {
@ -55,15 +55,15 @@ typedef struct {
typedef struct ts_document ts_document;
ts_document * ts_document_make();
void ts_document_free(ts_document *);
void ts_document_set_parser(ts_document *, ts_parse_config);
void ts_document_set_input(ts_document *, ts_input input);
void ts_document_set_input_string(ts_document *, const char *text);
const ts_tree * ts_document_tree(const ts_document *);
const char * ts_document_string(const ts_document *);
void ts_document_free(ts_document *doc);
void ts_document_set_parser(ts_document *doc, ts_parse_config parser);
void ts_document_set_input(ts_document *doc, ts_input input);
void ts_document_set_input_string(ts_document *doc, const char *text);
const ts_tree * ts_document_tree(const ts_document *doc);
const char * ts_document_string(const ts_document *doc);
#ifdef __cplusplus
}
#endif
#endif
#endif // TREE_SITTER_RUNTIME_H_