FusionBolt created this revision. FusionBolt added reviewers: 01alchemist, 0b01. FusionBolt requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D98254 Files: clang/lib/AST/Interp/Context.h clang/lib/AST/Interp/Interp.h Index: clang/lib/AST/Interp/Interp.h =================================================================== --- clang/lib/AST/Interp/Interp.h +++ clang/lib/AST/Interp/Interp.h @@ -37,7 +37,7 @@ using APInt = llvm::APInt; using APSInt = llvm::APSInt; -/// Convers a value to an APValue. +/// Convert a value to an APValue. template <typename T> bool ReturnValue(const T &V, APValue &R) { R = V.toAPValue(); return true; @@ -49,7 +49,7 @@ /// Checks if the array is offsetable. bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr); -/// Checks if a pointer is live and accesible. +/// Checks if a pointer is live and accessible. bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, AccessKinds AK); /// Checks if a pointer is null. Index: clang/lib/AST/Interp/Context.h =================================================================== --- clang/lib/AST/Interp/Context.h +++ clang/lib/AST/Interp/Context.h @@ -68,7 +68,7 @@ /// Runs a function. bool Run(State &Parent, Function *Func, APValue &Result); - /// Checks a result fromt the interpreter. + /// Checks a result from the interpreter. bool Check(State &Parent, llvm::Expected<bool> &&R); private:
Index: clang/lib/AST/Interp/Interp.h =================================================================== --- clang/lib/AST/Interp/Interp.h +++ clang/lib/AST/Interp/Interp.h @@ -37,7 +37,7 @@ using APInt = llvm::APInt; using APSInt = llvm::APSInt; -/// Convers a value to an APValue. +/// Convert a value to an APValue. template <typename T> bool ReturnValue(const T &V, APValue &R) { R = V.toAPValue(); return true; @@ -49,7 +49,7 @@ /// Checks if the array is offsetable. bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr); -/// Checks if a pointer is live and accesible. +/// Checks if a pointer is live and accessible. bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, AccessKinds AK); /// Checks if a pointer is null. Index: clang/lib/AST/Interp/Context.h =================================================================== --- clang/lib/AST/Interp/Context.h +++ clang/lib/AST/Interp/Context.h @@ -68,7 +68,7 @@ /// Runs a function. bool Run(State &Parent, Function *Func, APValue &Result); - /// Checks a result fromt the interpreter. + /// Checks a result from the interpreter. bool Check(State &Parent, llvm::Expected<bool> &&R); private:
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits