1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef TOOLS_CLANG_PLUGINS_UTIL_H_
6 #define TOOLS_CLANG_PLUGINS_UTIL_H_
7 
8 #include <string>
9 
10 #include "clang/AST/DeclBase.h"
11 
12 // Utility method for subclasses to determine the namespace of the
13 // specified record, if any. Unnamed namespaces will be identified as
14 // "<anonymous namespace>".
15 std::string GetNamespace(const clang::Decl* record);
16 
17 #endif  // TOOLS_CLANG_PLUGINS_UTIL_H_
18