[all-commits] [llvm/llvm-project] ee54c8: [clang][NFC] Improve const-correctness in `SourceM...
Vlad Serebrennikov via All-commits
all-commits at lists.llvm.org
Fri May 17 02:02:00 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ee54c86ef70d7809e7d67cd44de2d3153b31c46e
https://github.com/llvm/llvm-project/commit/ee54c86ef70d7809e7d67cd44de2d3153b31c46e
Author: Vlad Serebrennikov <serebrennikov.vladislav at gmail.com>
Date: 2024-05-17 (Fri, 17 May 2024)
Changed paths:
M clang/include/clang/Basic/SourceManager.h
M clang/lib/Basic/SourceManager.cpp
Log Message:
-----------
[clang][NFC] Improve const-correctness in `SourceManager` (#92436)
This patch adds several const-qualified variants of existing member
functions to `SourceManager`.
I started with removing const qualification from
`setNumCreatedFIDsForFileID`, and removing `const_cast` in the body of
this function, as I think it doesn't make sense to const-qualify
setters.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list