Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:37:05

0001 //===----- SemaPseudoObject.h --- Semantic Analysis for Pseudo-Objects ----===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 /// \file
0009 /// This file declares semantic analysis for expressions involving
0010 //  pseudo-object references.
0011 ///
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_CLANG_SEMA_SEMAPSEUDOOBJECT_H
0015 #define LLVM_CLANG_SEMA_SEMAPSEUDOOBJECT_H
0016 
0017 #include "clang/AST/ASTFwd.h"
0018 #include "clang/AST/OperationKinds.h"
0019 #include "clang/Basic/SourceLocation.h"
0020 #include "clang/Sema/Ownership.h"
0021 #include "clang/Sema/SemaBase.h"
0022 
0023 namespace clang {
0024 class Scope;
0025 
0026 class SemaPseudoObject : public SemaBase {
0027 public:
0028   SemaPseudoObject(Sema &S);
0029 
0030   ExprResult checkIncDec(Scope *S, SourceLocation OpLoc,
0031                          UnaryOperatorKind Opcode, Expr *Op);
0032   ExprResult checkAssignment(Scope *S, SourceLocation OpLoc,
0033                              BinaryOperatorKind Opcode, Expr *LHS, Expr *RHS);
0034   ExprResult checkRValue(Expr *E);
0035   Expr *recreateSyntacticForm(PseudoObjectExpr *E);
0036 };
0037 
0038 } // namespace clang
0039 
0040 #endif // LLVM_CLANG_SEMA_SEMAPSEUDOOBJECT_H