Skip to content

Commit

Permalink
Fixed the comment for the CheckedPointerKind enum class. (#652)
Browse files Browse the repository at this point in the history
Cherry-picked from commit 784d0f7

    - Added a missing comment for _Nt_Array_ptr.
    - Fixed an incomplete sentence for _Array_ptr.
  • Loading branch information
jiezhoucs authored and Mandeep Singh Grang committed Sep 27, 2019
1 parent 9632a09 commit 9a08cec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clang/include/clang/AST/Type.h
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,9 @@ enum class AutoTypeKeyword {
/// 3. Checked C _Array_ptr types: these have null checks
/// and bounds checks before memory accesses. Bounds
/// expressions must be statically specified. Pointer
/// arithmetic. It has overflow checking.
/// arithmetic is allowed. It has overflow checking.
/// 4. Checked C _Nt_Array_ptr: these are pointers to
/// null-terminated arrays. Pointer arithmetic is allowed.
enum class CheckedPointerKind {
/// \brief Unchecked C pointer.
Unchecked = 0,
Expand Down

0 comments on commit 9a08cec

Please sign in to comment.