forked from OSchip/llvm-project
[clangd] Fix windows build after 478863ef58
http://45.33.8.238/win/51774/step_4.txt MS extension causes the wrong class to be friended.
This commit is contained in:
parent
92417eaf33
commit
a61f34ea25
|
@ -38,6 +38,7 @@ namespace clangd {
|
||||||
|
|
||||||
// clangd has a built-in database of standard library symbols.
|
// clangd has a built-in database of standard library symbols.
|
||||||
namespace stdlib {
|
namespace stdlib {
|
||||||
|
class Symbol;
|
||||||
|
|
||||||
// A standard library header, such as <iostream>
|
// A standard library header, such as <iostream>
|
||||||
// Lightweight class, in fact just an index into a table.
|
// Lightweight class, in fact just an index into a table.
|
||||||
|
@ -53,7 +54,7 @@ public:
|
||||||
private:
|
private:
|
||||||
Header(unsigned ID) : ID(ID) {}
|
Header(unsigned ID) : ID(ID) {}
|
||||||
unsigned ID;
|
unsigned ID;
|
||||||
friend class Symbol;
|
friend Symbol;
|
||||||
friend llvm::DenseMapInfo<Header>;
|
friend llvm::DenseMapInfo<Header>;
|
||||||
friend bool operator==(const Header &L, const Header &R) {
|
friend bool operator==(const Header &L, const Header &R) {
|
||||||
return L.ID == R.ID;
|
return L.ID == R.ID;
|
||||||
|
|
Loading…
Reference in New Issue