clang-tools 10.0.0

Path.h
Go to the documentation of this file.
1 //===--- Path.h - Helper typedefs --------------------------------*- C++-*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_PATH_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_PATH_H
11
12 #include "llvm/ADT/StringRef.h"
13 #include <string>
14
15 namespace clang {
16 namespace clangd {
17
18 /// A typedef to represent a file path. Used solely for more descriptive
19 /// signatures.
20 using Path = std::string;
21 /// A typedef to represent a ref to file path. Used solely for more descriptive
22 /// signatures.
23 using PathRef = llvm::StringRef;
24
25 } // namespace clangd
26 } // namespace clang
27
28 #endif
clang::clangd::PathRef
llvm::StringRef PathRef
A typedef to represent a ref to file path.
Definition: Path.h:23
clang::clangd::Path
std::string Path
A typedef to represent a file path.
Definition: Path.h:20
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition: ApplyReplacements.h:27