diff options
author | Steve Naroff <snaroff@apple.com> | 2008-02-02 00:10:46 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-02-02 00:10:46 +0000 |
commit | 49c1f4aa2a6c360d25d605004ec3c4affd62db77 (patch) | |
tree | 9095e713ae4f93ea9dbc93c99e191bec42162bff /include/clang/Basic/SourceManager.h | |
parent | 27e2eb40b9adc876c05e0260d1100385c9f0e5f5 (diff) |
Cleanup previous patch (based on feedback from Ted).
Since this behavior is useful for most classes, we might consider adding a simple 3 method class that implements the behavior. Ted said that Boost has such a class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index 5e7cc75579..3555f05e32 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -222,14 +222,14 @@ class SourceManager { /// MainFileID - The file ID for the main source file of the translation unit. unsigned MainFileID; - + + // SourceManager doesn't support copy construction. + explicit SourceManager(const SourceManager&); + void operator=(const SourceManager&); public: SourceManager() : LastLineNoFileIDQuery(~0U), MainFileID(0) {} ~SourceManager() {} - // SourceManager doesn't support copy construction. - explicit SourceManager(const SourceManager&); - void clearIDTables() { FileIDs.clear(); MacroIDs.clear(); |