Home
last modified time | relevance | path

Searched refs:MessageFixedText (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/flang/include/flang/Parser/
Dmessage.h34 class MessageFixedText {
36 constexpr MessageFixedText(
39 constexpr MessageFixedText(const MessageFixedText &) = default;
40 constexpr MessageFixedText(MessageFixedText &&) = default;
41 constexpr MessageFixedText &operator=(const MessageFixedText &) = default;
42 constexpr MessageFixedText &operator=(MessageFixedText &&) = default;
53 constexpr MessageFixedText operator""_en_US(const char str[], std::size_t n) {
54 return MessageFixedText{str, n, false /* not fatal */};
57 constexpr MessageFixedText operator""_err_en_US(
59 return MessageFixedText{str, n, true /* fatal */};
[all …]
Dinstrumented-parser.h31 bool Fails(const char *at, const MessageFixedText &tag, ParseState &);
32 void Note(const char *at, const MessageFixedText &tag, bool pass,
45 std::map<MessageFixedText, Entry> perTag;
54 constexpr InstrumentedParser(const MessageFixedText &tag, const PA &parser) in InstrumentedParser()
74 const MessageFixedText tag_;
80 const MessageFixedText &tag, const PA &parser) { in instrumented()
Dparse-state.h123 void PushContext(MessageFixedText text) { in PushContext()
141 template <typename... A> void Say(const MessageFixedText &text, A &&...args) { in Say()
149 void Nonstandard(LanguageFeature lf, const MessageFixedText &msg) { in Nonstandard()
153 CharBlock range, LanguageFeature lf, const MessageFixedText &msg) { in Nonstandard()
159 bool IsNonstandardOk(LanguageFeature lf, const MessageFixedText &msg) { in IsNonstandardOk()
/external/llvm-project/flang/lib/Parser/
Dinstrumented-parser.cpp21 bool operator<(const MessageFixedText &x, const MessageFixedText &y) { in operator <()
26 const char *at, const MessageFixedText &tag, ParseState &state) { in Fails()
47 void ParsingLog::Note(const char *at, const MessageFixedText &tag, bool pass, in Note()
Dmessage.cpp23 llvm::raw_ostream &operator<<(llvm::raw_ostream &o, const MessageFixedText &t) { in operator <<()
31 void MessageFormattedText::Format(const MessageFixedText *text, ...) { in Format()
150 [](const MessageFixedText &x) { return x.isFatal(); }, in IsFatal()
159 [](const MessageFixedText &t) { in ToString()
Dbasic-parsers.h53 constexpr explicit FailParser(MessageFixedText t) : text_{t} {} in FailParser()
60 const MessageFixedText text_;
63 template <typename A = Success> inline constexpr auto fail(MessageFixedText t) { in fail()
182 constexpr MessageContextParser(MessageFixedText t, PA p) in MessageContextParser()
192 const MessageFixedText text_;
197 inline constexpr auto inContext(MessageFixedText context, PA parser) { in inContext()
208 constexpr WithMessageParser(MessageFixedText t, PA p) in WithMessageParser()
240 const MessageFixedText text_;
245 inline constexpr auto withMessage(MessageFixedText msg, PA parser) { in withMessage()
820 inline constexpr auto localRecovery(MessageFixedText msg, PA pa, PB pb) { in localRecovery()
Dmisc-parsers.h29 inline constexpr auto nonemptyList(MessageFixedText error, const PA &p) { in nonemptyList()
/external/llvm-project/flang/lib/Semantics/
Dcheck-coarray.h17 class MessageFixedText; variable
44 void Say2(const parser::CharBlock &, parser::MessageFixedText &&,
45 const parser::CharBlock &, parser::MessageFixedText &&);
Dmod-file.h19 class MessageFixedText; variable
79 parser::MessageFixedText &&, const std::string &);
Dcheck-coarray.cpp55 parser::MessageFixedText GetEnclosingMsg() { in GetEnclosingMsg()
184 parser::MessageFixedText &&msg1, const parser::CharBlock &name2, in Say2()
185 parser::MessageFixedText &&msg2) { in Say2()
Dpointer-assignment.cpp37 using parser::MessageFixedText;
150 std::optional<MessageFixedText> msg; in Check()
194 std::optional<std::variant<MessageFixedText, MessageFormattedText>> msg; in Check()
240 if (auto *m{std::get_if<MessageFixedText>(&*msg)}) { in Check()
256 if (std::optional<MessageFixedText> msg{ in Check()
Dresolve-names-utils.h47 parser::MessageFixedText WithIsFatal(
48 const parser::MessageFixedText &msg, bool isFatal);
Dresolve-names-utils.cpp44 parser::MessageFixedText WithIsFatal( in WithIsFatal()
45 const parser::MessageFixedText &msg, bool isFatal) { in WithIsFatal()
46 return parser::MessageFixedText{ in WithIsFatal()
394 std::optional<parser::MessageFixedText> msg; in CheckCanEquivalence()
541 parser::MessageFixedText msg{"", 0}; in CheckObject()
Dcheck-declarations.cpp77 std::optional<parser::MessageFixedText> CheckNumberOfArgs(
578 std::optional<parser::MessageFixedText> msg; in CheckArraySpec()
697 const Symbol &, const Symbol &, parser::MessageFixedText &&, A &&...);
740 std::optional<parser::MessageFixedText> error; in CheckSubprogram()
1065 std::optional<parser::MessageFixedText> msg; in CheckDefinedOperator()
1091 std::optional<parser::MessageFixedText> CheckHelper::CheckNumberOfArgs( in CheckNumberOfArgs()
1136 std::optional<parser::MessageFixedText> msg; in CheckDefinedOperatorArg()
1163 std::optional<parser::MessageFixedText> msg; in CheckDefinedAssignment()
1188 std::optional<parser::MessageFixedText> msg; in CheckDefinedAssignmentArg()
1365 std::optional<parser::MessageFixedText> msg; in CheckPassArg()
[all …]
Dresolve-names.cpp51 using MessageFixedText = parser::MessageFixedText; typedef
115 Message &Say(MessageFixedText &&);
118 Message &Say(const SourceName &, MessageFixedText &&);
121 Message &Say(const SourceName &source, MessageFixedText &&msg, A &&...args) { in Say()
217 const parser::Name &name, MessageFixedText &&text, const A &...args) { in Say()
487 const parser::Name &, Symbol &, MessageFixedText &&, MessageFixedText &&);
488 void SayWithDecl(const parser::Name &, Symbol &, MessageFixedText &&);
490 void SayDerivedType(const SourceName &, MessageFixedText &&, const Scope &);
491 void Say2(const SourceName &, MessageFixedText &&, const SourceName &,
492 MessageFixedText &&);
[all …]
Dtools.cpp777 std::optional<parser::MessageFixedText> WhyNotModifiable( in WhyNotModifiable()
887 std::optional<parser::MessageFixedText> GetImageControlStmtCoarrayMsg( in GetImageControlStmtCoarrayMsg()
894 -> std::optional<parser::MessageFixedText> { in GetImageControlStmtCoarrayMsg()
899 -> std::optional<parser::MessageFixedText> { in GetImageControlStmtCoarrayMsg()
904 -> std::optional<parser::MessageFixedText> { in GetImageControlStmtCoarrayMsg()
908 [](const auto &) -> std::optional<parser::MessageFixedText> { in GetImageControlStmtCoarrayMsg()
Dcheck-do-forall.cpp75 static parser::MessageFixedText GetEnclosingDoMsg() { in GetEnclosingDoMsg()
80 parser::MessageFixedText &&message, parser::CharBlock doLocation) { in SayWithDo()
600 parser::MessageFixedText &&errorMessage, in CheckNoCollisions()
Dscope.cpp219 std::optional<parser::MessageFixedText> Scope::SetImportKind(ImportKind kind) { in SetImportKind()
Dsemantics.cpp266 const Symbol &variable, parser::MessageFixedText &&message) { in CheckIndexVarRedefine()
Dmod-file.cpp784 Say(name, ancestorName, parser::MessageFixedText{str.c_str(), str.size()}, in Read()
823 const std::string &ancestor, parser::MessageFixedText &&msg, in Say()
Dexpression.cpp138 const char *, parser::MessageFixedText &&, bool isUserOp = false);
140 MaybeExpr TryDefinedOp(E opr, parser::MessageFixedText &&msg) { in TryDefinedOp()
152 std::vector<const char *>, parser::MessageFixedText &&);
2950 const char *opr, parser::MessageFixedText &&error, bool isUserOp) { in TryDefinedOp()
2991 std::vector<const char *> oprs, parser::MessageFixedText &&error) { in TryDefinedOp()
3049 std::optional<parser::MessageFixedText> msg; in OkLogicalIntegerAssignment()
/external/llvm-project/flang/include/flang/Semantics/
Dsemantics.h149 parser::MessageFixedText &&msg, A &&...args) { in SayWithDecl()
177 const parser::CharBlock &, const Symbol &, parser::MessageFixedText &&);
Dtools.h173 std::optional<parser::MessageFixedText> WhyNotModifiable(
192 std::optional<parser::MessageFixedText> GetImageControlStmtCoarrayMsg(
Dscope.h212 std::optional<parser::MessageFixedText> SetImportKind(ImportKind);
/external/llvm-project/flang/lib/Evaluate/
Dtools.cpp869 std::optional<parser::MessageFixedText> CheckProcCompatibility(bool isCall, in CheckProcCompatibility()
872 std::optional<parser::MessageFixedText> msg; in CheckProcCompatibility()

12