|
clang 22.0.0git
|
This represents the 'message' clause in the '#pragma omp error' and the '#pragma omp parallel' directives. More...
#include "clang/AST/OpenMPClause.h"
Public Member Functions | |
| OMPMessageClause (Expr *MS, Stmt *HelperMS, OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) | |
| Build 'message' clause with message string argument. | |
| OMPMessageClause () | |
| Build an empty clause. | |
| Expr * | getMessageString () const |
| Returns message string of the clause. | |
| std::optional< std::string > | tryEvaluateString (ASTContext &Ctx) const |
| Try to evaluate the message string at compile time. | |
| Public Member Functions inherited from clang::OMPOneStmtClause< llvm::omp::OMPC_message, OMPClause > | |
| OMPOneStmtClause (Stmt *S, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc) | |
| T * | getStmtAs () const |
Return the associated statement, potentially casted to T. | |
| void | setLParenLoc (SourceLocation Loc) |
| Sets the location of '('. | |
| SourceLocation | getLParenLoc () const |
| Returns the location of '('. | |
| child_range | children () |
| child_range | used_children () |
| Public Member Functions inherited from clang::OMPClause | |
| SourceLocation | getBeginLoc () const |
| Returns the starting location of the clause. | |
| SourceLocation | getEndLoc () const |
| Returns the ending location of the clause. | |
| void | setLocStart (SourceLocation Loc) |
| Sets the starting location of the clause. | |
| void | setLocEnd (SourceLocation Loc) |
| Sets the ending location of the clause. | |
| OpenMPClauseKind | getClauseKind () const |
| Returns kind of OpenMP clause (private, shared, reduction, etc.). | |
| bool | isImplicit () const |
| child_range | children () |
| const_child_range | children () const |
| child_range | used_children () |
| Get the iterator range for the expressions used in the clauses. | |
| const_child_range | used_children () const |
| Public Member Functions inherited from clang::OMPClauseWithPreInit | |
| const Stmt * | getPreInitStmt () const |
| Get pre-initialization statement for the clause. | |
| Stmt * | getPreInitStmt () |
| Get pre-initialization statement for the clause. | |
| OpenMPDirectiveKind | getCaptureRegion () const |
| Get capture region for the stmt in the clause. | |
Friends | |
| class | OMPClauseReader |
This represents the 'message' clause in the '#pragma omp error' and the '#pragma omp parallel' directives.
In this example directive '#pragma omp error' has simple 'message' clause with user error message of "GNU compiler required.".
Definition at line 2042 of file OpenMPClause.h.
|
inline |
Build 'message' clause with message string argument.
| MS | Argument of the clause (message string). |
| HelperMS | Helper statement for the construct. |
| CaptureRegion | Innermost OpenMP region where expressions in this clause must be captured. |
| StartLoc | Starting location of the clause. |
| LParenLoc | Location of '('. |
| EndLoc | Ending location of the clause. |
Definition at line 2060 of file OpenMPClause.h.
References clang::OMPClauseWithPreInit::OMPClauseWithPreInit(), clang::OMPOneStmtClause< llvm::omp::OMPC_message, OMPClause >::OMPOneStmtClause(), and clang::OMPClauseWithPreInit::setPreInitStmt().
|
inline |
Build an empty clause.
Definition at line 2069 of file OpenMPClause.h.
References clang::OMPClauseWithPreInit::OMPClauseWithPreInit(), and clang::OMPOneStmtClause< llvm::omp::OMPC_message, OMPClause >::OMPOneStmtClause().
|
inline |
Returns message string of the clause.
Definition at line 2072 of file OpenMPClause.h.
References clang::OMPOneStmtClause< llvm::omp::OMPC_message, OMPClause >::getStmtAs().
Referenced by clang::SemaOpenMP::ActOnOpenMPErrorDirective(), clang::CodeGen::CodeGenFunction::EmitOMPErrorDirective(), and tryEvaluateString().
|
inline |
Try to evaluate the message string at compile time.
Definition at line 2075 of file OpenMPClause.h.
References getMessageString().
Referenced by clang::SemaOpenMP::ActOnOpenMPErrorDirective().
|
friend |
Definition at line 2045 of file OpenMPClause.h.
References OMPClauseReader.
Referenced by OMPClauseReader.