Skip to content

Commit

Permalink
rp needs to know about --no-realpath as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andersbakken committed Oct 6, 2016
1 parent e60169a commit 40e865f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/ClangIndexer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ bool ClangIndexer::exec(const String &data)
deserializer >> mDebugLocations;
deserializer >> blockedFiles;

if (sServerOpts & Server::NoRealPath) {
Path::setRealPathEnabled(false);
}

#if 0
while (true) {
FILE *f = fopen((String("/tmp/stop_") + mSourceFile.fileName()).constData(), "r+");
Expand Down
3 changes: 2 additions & 1 deletion src/Server.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class Server
NoFileManager = (1ull << 26),
ValidateFileMaps = (1ull << 27),
CompletionLogs = (1ull << 28),
AllowWErrorAndWFatalErrors = (1ull << 29)
AllowWErrorAndWFatalErrors = (1ull << 29),
NoRealPath = (1ull << 30)
};
struct Options {
Options()
Expand Down
1 change: 1 addition & 0 deletions src/rdm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,7 @@ int main(int argc, char** argv)
break; }
case NoRealPath: {
Path::setRealPathEnabled(false);
serverOpts.options |= Server::NoRealPath;
break; }
}

Expand Down

0 comments on commit 40e865f

Please sign in to comment.