[flang] Update the header file guards in lib/parser to reflect the introduction of the parser namespace.

Original-commit: flang-compiler/f18@a11bb88396
Reviewed-on: https://github.com/flang-compiler/f18/pull/12
This commit is contained in:
peter klausler 2018-02-16 11:42:17 -08:00
parent 1d09d20b3a
commit dd9923bf45
16 changed files with 48 additions and 48 deletions

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_BASIC_PARSERS_H_
#define FORTRAN_BASIC_PARSERS_H_
#ifndef FORTRAN_PARSER_BASIC_PARSERS_H_
#define FORTRAN_PARSER_BASIC_PARSERS_H_
// Let a "parser" be an instance of any class that supports this
// type definition and member (or static) function:
@ -1291,4 +1291,4 @@ constexpr struct GetProvenance {
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_BASIC_PARSERS_H_
#endif // FORTRAN_PARSER_BASIC_PARSERS_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_CHAR_BUFFER_H_
#define FORTRAN_CHAR_BUFFER_H_
#ifndef FORTRAN_PARSER_CHAR_BUFFER_H_
#define FORTRAN_PARSER_CHAR_BUFFER_H_
// Defines a simple expandable buffer suitable for efficiently accumulating
// a stream of bytes.
@ -115,4 +115,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_CHAR_BUFFER_H_
#endif // FORTRAN_PARSER_CHAR_BUFFER_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_DEBUG_PARSER_H_
#define FORTRAN_DEBUG_PARSER_H_
#ifndef FORTRAN_PARSER_DEBUG_PARSER_H_
#define FORTRAN_PARSER_DEBUG_PARSER_H_
// Implements the parser with syntax "(YOUR MESSAGE HERE)"_debug for use
// in temporary modifications to the grammar intended for tracing the
@ -39,4 +39,4 @@ constexpr DebugParser operator""_debug(const char str[], size_t n) {
}
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_DEBUG_PARSER_H_
#endif // FORTRAN_PARSER_DEBUG_PARSER_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_GRAMMAR_H_
#define FORTRAN_GRAMMAR_H_
#ifndef FORTRAN_PARSER_GRAMMAR_H_
#define FORTRAN_PARSER_GRAMMAR_H_
// Top-level grammar specification for Fortran. These parsers drive
// the tokenization parsers in cooked-tokens.h to consume characters,
@ -3646,4 +3646,4 @@ TYPE_CONTEXT_PARSER("PAUSE statement",
// is only used via scalar-default-char-constant-expr
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_GRAMMAR_H_
#endif // FORTRAN_PARSER_GRAMMAR_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_IDIOMS_H_
#define FORTRAN_IDIOMS_H_
#ifndef FORTRAN_PARSER_IDIOMS_H_
#define FORTRAN_PARSER_IDIOMS_H_
// Defines anything that might ever be useful in more than one source file
// or that is too weird or too specific to the host C++ compiler to be
@ -128,4 +128,4 @@ std::ostream &operator<<(std::ostream &o, const std::variant<As...> &x) {
}
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_IDIOMS_H_
#endif // FORTRAN_PARSER_IDIOMS_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_INDIRECTION_H_
#define FORTRAN_INDIRECTION_H_
#ifndef FORTRAN_PARSER_INDIRECTION_H_
#define FORTRAN_PARSER_INDIRECTION_H_
// Defines a smart pointer template class that's rather like std::unique_ptr<>
// but further restricted, like a C++ reference, to be non-null when constructed
@ -58,4 +58,4 @@ std::ostream &operator<<(std::ostream &o, const Indirection<A> &x) {
}
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_INDIRECTION_H_
#endif // FORTRAN_PARSER_INDIRECTION_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_MESSAGE_H_
#define FORTRAN_MESSAGE_H_
#ifndef FORTRAN_PARSER_MESSAGE_H_
#define FORTRAN_PARSER_MESSAGE_H_
// Defines a representation for sequences of compiler messages.
// Supports nested contextualization.
@ -111,4 +111,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_MESSAGE_H_
#endif // FORTRAN_PARSER_MESSAGE_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_PARSE_STATE_H_
#define FORTRAN_PARSE_STATE_H_
#ifndef FORTRAN_PARSER_PARSE_STATE_H_
#define FORTRAN_PARSER_PARSE_STATE_H_
// Defines the ParseState type used as the argument for every parser's
// Parse member or static function. Tracks source provenance, context,
@ -192,4 +192,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_PARSE_STATE_H_
#endif // FORTRAN_PARSER_PARSE_STATE_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_PARSE_TREE_H_
#define FORTRAN_PARSE_TREE_H_
#ifndef FORTRAN_PARSER_PARSE_TREE_H_
#define FORTRAN_PARSER_PARSE_TREE_H_
// Defines the classes used to represent successful reductions of productions
// in the Fortran grammar. The names and content of these definitions
@ -3224,4 +3224,4 @@ std::ostream &operator<<(std::ostream &o, const LoopBounds<A> &x) {
}
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_PARSE_TREE_H_
#endif // FORTRAN_PARSER_PARSE_TREE_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_PREPROCESSOR_H_
#define FORTRAN_PREPROCESSOR_H_
#ifndef FORTRAN_PARSER_PREPROCESSOR_H_
#define FORTRAN_PARSER_PREPROCESSOR_H_
// A Fortran-aware preprocessing module used by the prescanner to implement
// preprocessing directives and macro replacement. Intended to be efficient
@ -86,4 +86,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_PREPROCESSOR_H_
#endif // FORTRAN_PARSER_PREPROCESSOR_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_PRESCAN_H_
#define FORTRAN_PRESCAN_H_
#ifndef FORTRAN_PARSER_PRESCAN_H_
#define FORTRAN_PARSER_PRESCAN_H_
// Defines a fast Fortran source prescanning phase that implements some
// character-level features of the language that can be inefficient to
@ -124,4 +124,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_PRESCAN_H_
#endif // FORTRAN_PARSER_PRESCAN_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_PROVENANCE_H_
#define FORTRAN_PROVENANCE_H_
#ifndef FORTRAN_PARSER_PROVENANCE_H_
#define FORTRAN_PARSER_PROVENANCE_H_
#include "char-buffer.h"
#include "idioms.h"
@ -251,4 +251,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_PROVENANCE_H_
#endif // FORTRAN_PARSER_PROVENANCE_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_SOURCE_H_
#define FORTRAN_SOURCE_H_
#ifndef FORTRAN_PARSER_SOURCE_H_
#define FORTRAN_PARSER_SOURCE_H_
// Source file content is lightly normalized when the file is read.
// - Line ending markers are converted to single newline characters
@ -43,4 +43,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_SOURCE_H_
#endif // FORTRAN_PARSER_SOURCE_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_TOKEN_PARSERS_H_
#define FORTRAN_TOKEN_PARSERS_H_
#ifndef FORTRAN_PARSER_TOKEN_PARSERS_H_
#define FORTRAN_PARSER_TOKEN_PARSERS_H_
// These parsers are driven by the Fortran grammar (grammar.h) to consume
// the prescanned character stream and recognize context-sensitive tokens.
@ -440,4 +440,4 @@ template<typename PA> inline constexpr auto optionalBeforeColons(const PA &p) {
}
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_TOKEN_PARSERS_H_
#endif // FORTRAN_PARSER_TOKEN_PARSERS_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_TOKEN_SEQUENCE_H_
#define FORTRAN_TOKEN_SEQUENCE_H_
#ifndef FORTRAN_PARSER_TOKEN_SEQUENCE_H_
#define FORTRAN_PARSER_TOKEN_SEQUENCE_H_
// A buffer class capable of holding a contiguous sequence of characters
// that have been partitioned into preprocessing tokens.
@ -149,4 +149,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_TOKEN_SEQUENCE_H_
#endif // FORTRAN_PARSER_TOKEN_SEQUENCE_H_

View File

@ -1,5 +1,5 @@
#ifndef FORTRAN_USER_STATE_H_
#define FORTRAN_USER_STATE_H_
#ifndef FORTRAN_PARSER_USER_STATE_H_
#define FORTRAN_PARSER_USER_STATE_H_
// Instances of ParseState (parse-state.h) incorporate instances of this
// UserState class, which encapsulates any semantic information necessary for
@ -38,4 +38,4 @@ private:
};
} // namespace parser
} // namespace Fortran
#endif // FORTRAN_USER_STATE_H_
#endif // FORTRAN_PARSER_USER_STATE_H_