summaryrefslogtreecommitdiff
path: root/src/tools/clangbackend/ipcsource
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-03-18 07:55:01 +0100
committerhjk <hjk@theqtcompany.com>2016-03-30 15:20:19 +0000
commit39a38d5679084b515276285c044d8a27e671adb1 (patch)
tree8f72b00aa4a7db53eb8e193119033edf1ae9b0e4 /src/tools/clangbackend/ipcsource
parent6b805c217273b9d169aa7e8a78949e17179016bf (diff)
downloadqt-creator-39a38d5679084b515276285c044d8a27e671adb1.tar.gz
Wholesale conversion to #pragma once
Kudos to cgmb and https://github.com/cgmb/guardonce Change-Id: Ifa8970734b8d43fd08c9260c645bdb0228633791 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/tools/clangbackend/ipcsource')
-rw-r--r--src/tools/clangbackend/ipcsource/clangcodecompleteresults.h5
-rw-r--r--src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h5
-rw-r--r--src/tools/clangbackend/ipcsource/clangipcserver.h4
-rw-r--r--src/tools/clangbackend/ipcsource/clangstring.h5
-rw-r--r--src/tools/clangbackend/ipcsource/clangtranslationunit.h5
-rw-r--r--src/tools/clangbackend/ipcsource/clangtype.h5
-rw-r--r--src/tools/clangbackend/ipcsource/codecompletefailedexception.h5
-rw-r--r--src/tools/clangbackend/ipcsource/codecompleter.h5
-rw-r--r--src/tools/clangbackend/ipcsource/codecompletionchunkconverter.h5
-rw-r--r--src/tools/clangbackend/ipcsource/codecompletionsextractor.h5
-rw-r--r--src/tools/clangbackend/ipcsource/commandlinearguments.h5
-rw-r--r--src/tools/clangbackend/ipcsource/cursor.h6
-rw-r--r--src/tools/clangbackend/ipcsource/diagnostic.h5
-rw-r--r--src/tools/clangbackend/ipcsource/diagnosticset.h5
-rw-r--r--src/tools/clangbackend/ipcsource/diagnosticsetiterator.h6
-rw-r--r--src/tools/clangbackend/ipcsource/fixit.h5
-rw-r--r--src/tools/clangbackend/ipcsource/projectpart.h5
-rw-r--r--src/tools/clangbackend/ipcsource/projectpartsdonotexistexception.h5
-rw-r--r--src/tools/clangbackend/ipcsource/projects.h5
-rw-r--r--src/tools/clangbackend/ipcsource/skippedsourceranges.h5
-rw-r--r--src/tools/clangbackend/ipcsource/sourcelocation.h5
-rw-r--r--src/tools/clangbackend/ipcsource/sourcerange.h5
-rw-r--r--src/tools/clangbackend/ipcsource/translationunitalreadyexistsexception.h5
-rw-r--r--src/tools/clangbackend/ipcsource/translationunitdoesnotexistexception.h5
-rw-r--r--src/tools/clangbackend/ipcsource/translationunitfilenotexitexception.h5
-rw-r--r--src/tools/clangbackend/ipcsource/translationunitisnullexception.h5
-rw-r--r--src/tools/clangbackend/ipcsource/translationunitparseerrorexception.h5
-rw-r--r--src/tools/clangbackend/ipcsource/translationunits.h5
-rw-r--r--src/tools/clangbackend/ipcsource/unsavedfiles.h5
29 files changed, 29 insertions, 117 deletions
diff --git a/src/tools/clangbackend/ipcsource/clangcodecompleteresults.h b/src/tools/clangbackend/ipcsource/clangcodecompleteresults.h
index 63e164c402..157fcf1224 100644
--- a/src/tools/clangbackend/ipcsource/clangcodecompleteresults.h
+++ b/src/tools/clangbackend/ipcsource/clangcodecompleteresults.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_CLANGCODECOMPLETERESULTS_H
-#define CLANGBACKEND_CLANGCODECOMPLETERESULTS_H
+#pragma once
#include <clang-c/Index.h>
@@ -61,5 +60,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_CLANGCODECOMPLETERESULTS_H
diff --git a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h
index 4f7a9461a2..4d6be96a21 100644
--- a/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h
+++ b/src/tools/clangbackend/ipcsource/clangfilesystemwatcher.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGFILESYSTEMWATCHER_H
-#define CLANGFILESYSTEMWATCHER_H
+#pragma once
#include <QFileSystemWatcher>
#include <QSet>
@@ -56,5 +55,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGFILESYSTEMWATCHER_H
diff --git a/src/tools/clangbackend/ipcsource/clangipcserver.h b/src/tools/clangbackend/ipcsource/clangipcserver.h
index a75801f828..a8d4a735d0 100644
--- a/src/tools/clangbackend/ipcsource/clangipcserver.h
+++ b/src/tools/clangbackend/ipcsource/clangipcserver.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGIPCSERVER_H
-#define CLANGIPCSERVER_H
+#pragma once
#include "ipcserverinterface.h"
@@ -74,4 +73,3 @@ private:
};
} // namespace ClangBackEnd
-#endif // CLANGIPCSERVER_H
diff --git a/src/tools/clangbackend/ipcsource/clangstring.h b/src/tools/clangbackend/ipcsource/clangstring.h
index 3fb15f5d72..9f49cc7971 100644
--- a/src/tools/clangbackend/ipcsource/clangstring.h
+++ b/src/tools/clangbackend/ipcsource/clangstring.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_CLANGSTRING_H
-#define CLANGBACKEND_CLANGSTRING_H
+#pragma once
#include <clang-c/CXString.h>
@@ -55,5 +54,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_CLANGSTRING_H
diff --git a/src/tools/clangbackend/ipcsource/clangtranslationunit.h b/src/tools/clangbackend/ipcsource/clangtranslationunit.h
index 6943664aae..893e469f09 100644
--- a/src/tools/clangbackend/ipcsource/clangtranslationunit.h
+++ b/src/tools/clangbackend/ipcsource/clangtranslationunit.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TRANSLATIONUNIT_H
-#define CLANGBACKEND_TRANSLATIONUNIT_H
+#pragma once
#include <utf8stringvector.h>
@@ -166,5 +165,3 @@ private:
bool operator==(const TranslationUnit &first, const TranslationUnit &second);
void PrintTo(const TranslationUnit &translationUnit, ::std::ostream *os);
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TRANSLATIONUNIT_H
diff --git a/src/tools/clangbackend/ipcsource/clangtype.h b/src/tools/clangbackend/ipcsource/clangtype.h
index 348019fad5..e9a19e92db 100644
--- a/src/tools/clangbackend/ipcsource/clangtype.h
+++ b/src/tools/clangbackend/ipcsource/clangtype.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TYPE_H
-#define CLANGBACKEND_TYPE_H
+#pragma once
#include <clang-c/Index.h>
@@ -78,5 +77,3 @@ bool operator==(Type first, Type second);
void PrintTo(CXTypeKind typeKind, ::std::ostream* os);
void PrintTo(const Type &type, ::std::ostream* os);
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TYPE_H
diff --git a/src/tools/clangbackend/ipcsource/codecompletefailedexception.h b/src/tools/clangbackend/ipcsource/codecompletefailedexception.h
index c722fd4f88..d2ee10b2ed 100644
--- a/src/tools/clangbackend/ipcsource/codecompletefailedexception.h
+++ b/src/tools/clangbackend/ipcsource/codecompletefailedexception.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CODECOMPLETEFAILEDEXCEPTION_H
-#define CODECOMPLETEFAILEDEXCEPTION_H
+#pragma once
class CodeCompleteFailedException
@@ -32,5 +31,3 @@ class CodeCompleteFailedException
public:
CodeCompleteFailedException();
};
-
-#endif // CODECOMPLETEFAILEDEXCEPTION_H
diff --git a/src/tools/clangbackend/ipcsource/codecompleter.h b/src/tools/clangbackend/ipcsource/codecompleter.h
index 99749414f4..2139da926d 100644
--- a/src/tools/clangbackend/ipcsource/codecompleter.h
+++ b/src/tools/clangbackend/ipcsource/codecompleter.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_CODECOMPLETER_H
-#define CLANGBACKEND_CODECOMPLETER_H
+#pragma once
#include "clangtranslationunit.h"
@@ -66,5 +65,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_CODECOMPLETER_H
diff --git a/src/tools/clangbackend/ipcsource/codecompletionchunkconverter.h b/src/tools/clangbackend/ipcsource/codecompletionchunkconverter.h
index a912c4b481..0bfb1a19c1 100644
--- a/src/tools/clangbackend/ipcsource/codecompletionchunkconverter.h
+++ b/src/tools/clangbackend/ipcsource/codecompletionchunkconverter.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_CODECOMPLETIONCHUNKCONVERTER_H
-#define CLANGBACKEND_CODECOMPLETIONCHUNKCONVERTER_H
+#pragma once
#include <codecompletionchunk.h>
@@ -51,5 +50,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_CODECOMPLETIONCHUNKCONVERTER_H
diff --git a/src/tools/clangbackend/ipcsource/codecompletionsextractor.h b/src/tools/clangbackend/ipcsource/codecompletionsextractor.h
index bc7015dcad..8a4c7c03ab 100644
--- a/src/tools/clangbackend/ipcsource/codecompletionsextractor.h
+++ b/src/tools/clangbackend/ipcsource/codecompletionsextractor.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_CODECOMPLETIONSEXTRACTOR_H
-#define CLANGBACKEND_CODECOMPLETIONSEXTRACTOR_H
+#pragma once
#include <codecompletion.h>
@@ -83,5 +82,3 @@ private:
void PrintTo(const CodeCompletionsExtractor &extractor, ::std::ostream* os);
#endif
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_CODECOMPLETIONSEXTRACTOR_H
diff --git a/src/tools/clangbackend/ipcsource/commandlinearguments.h b/src/tools/clangbackend/ipcsource/commandlinearguments.h
index 860e4f2f71..8e6f59191d 100644
--- a/src/tools/clangbackend/ipcsource/commandlinearguments.h
+++ b/src/tools/clangbackend/ipcsource/commandlinearguments.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_COMMANDLINEARGUMENTS_H
-#define CLANGBACKEND_COMMANDLINEARGUMENTS_H
+#pragma once
#include <utf8stringvector.h>
@@ -51,5 +50,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_COMMANDLINEARGUMENTS_H
diff --git a/src/tools/clangbackend/ipcsource/cursor.h b/src/tools/clangbackend/ipcsource/cursor.h
index 426563255b..6711ab98d5 100644
--- a/src/tools/clangbackend/ipcsource/cursor.h
+++ b/src/tools/clangbackend/ipcsource/cursor.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_CURSOR_H
-#define CLANGBACKEND_CURSOR_H
+#pragma once
#include "clangtype.h"
@@ -119,6 +118,3 @@ bool operator==(const Cursor &first, const Cursor &second);
void PrintTo(CXCursorKind cursorKind, ::std::ostream *os);
void PrintTo(const Cursor &cursor, ::std::ostream* os);
} // namespace ClangBackEnd
-
-
-#endif // CLANGBACKEND_CURSOR_H
diff --git a/src/tools/clangbackend/ipcsource/diagnostic.h b/src/tools/clangbackend/ipcsource/diagnostic.h
index 76de4a3b81..64d4eff9b7 100644
--- a/src/tools/clangbackend/ipcsource/diagnostic.h
+++ b/src/tools/clangbackend/ipcsource/diagnostic.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_DIAGNOSTIC_H
-#define CLANGBACKEND_DIAGNOSTIC_H
+#pragma once
#include <clangbackendipc_global.h>
@@ -88,5 +87,3 @@ inline bool operator==(Diagnostic first, Diagnostic second)
}
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_DIAGNOSTIC_H
diff --git a/src/tools/clangbackend/ipcsource/diagnosticset.h b/src/tools/clangbackend/ipcsource/diagnosticset.h
index 2a66fa7eb5..e715ad2627 100644
--- a/src/tools/clangbackend/ipcsource/diagnosticset.h
+++ b/src/tools/clangbackend/ipcsource/diagnosticset.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_DIAGNOSTICSET_H
-#define CLANGBACKEND_DIAGNOSTICSET_H
+#pragma once
#include "diagnostic.h"
#include "diagnosticsetiterator.h"
@@ -80,5 +79,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_DIAGNOSTICSET_H
diff --git a/src/tools/clangbackend/ipcsource/diagnosticsetiterator.h b/src/tools/clangbackend/ipcsource/diagnosticsetiterator.h
index 0442cd0e43..7739dfd365 100644
--- a/src/tools/clangbackend/ipcsource/diagnosticsetiterator.h
+++ b/src/tools/clangbackend/ipcsource/diagnosticsetiterator.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef DIAGNOSTICSETITERATOR_H
-#define DIAGNOSTICSETITERATOR_H
+#pragma once
#include <iterator>
@@ -83,6 +82,3 @@ private:
};
}
-
-#endif // DIAGNOSTICSETITERATOR_H
-
diff --git a/src/tools/clangbackend/ipcsource/fixit.h b/src/tools/clangbackend/ipcsource/fixit.h
index 68e5d05a26..f866bc8c18 100644
--- a/src/tools/clangbackend/ipcsource/fixit.h
+++ b/src/tools/clangbackend/ipcsource/fixit.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_FIXIT_H
-#define CLANGBACKEND_FIXIT_H
+#pragma once
#include "sourcerange.h"
@@ -56,5 +55,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_FIXIT_H
diff --git a/src/tools/clangbackend/ipcsource/projectpart.h b/src/tools/clangbackend/ipcsource/projectpart.h
index d6856f5c99..13cbbae248 100644
--- a/src/tools/clangbackend/ipcsource/projectpart.h
+++ b/src/tools/clangbackend/ipcsource/projectpart.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_PROJECT_H
-#define CLANGBACKEND_PROJECT_H
+#pragma once
#include <utf8string.h>
@@ -79,5 +78,3 @@ private:
bool operator==(const ProjectPart &first, const ProjectPart &second);
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_PROJECT_H
diff --git a/src/tools/clangbackend/ipcsource/projectpartsdonotexistexception.h b/src/tools/clangbackend/ipcsource/projectpartsdonotexistexception.h
index 76de2310ab..2b5b108828 100644
--- a/src/tools/clangbackend/ipcsource/projectpartsdonotexistexception.h
+++ b/src/tools/clangbackend/ipcsource/projectpartsdonotexistexception.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_PROJECTDONOTEXISTSEXCEPTION_H
-#define CLANGBACKEND_PROJECTDONOTEXISTSEXCEPTION_H
+#pragma once
#include <utf8stringvector.h>
@@ -53,5 +52,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_PROJECTDONOTEXISTSEXCEPTION_H
diff --git a/src/tools/clangbackend/ipcsource/projects.h b/src/tools/clangbackend/ipcsource/projects.h
index 29667c89c0..4354aebbeb 100644
--- a/src/tools/clangbackend/ipcsource/projects.h
+++ b/src/tools/clangbackend/ipcsource/projects.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_PROJECTS_H
-#define CLANGBACKEND_PROJECTS_H
+#pragma once
#include "projectpart.h"
@@ -57,5 +56,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_PROJECTS_H
diff --git a/src/tools/clangbackend/ipcsource/skippedsourceranges.h b/src/tools/clangbackend/ipcsource/skippedsourceranges.h
index 222c2b9202..ddbf3e62b5 100644
--- a/src/tools/clangbackend/ipcsource/skippedsourceranges.h
+++ b/src/tools/clangbackend/ipcsource/skippedsourceranges.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_SKIPPEDSOURCERANGES_H
-#define CLANGBACKEND_SKIPPEDSOURCERANGES_H
+#pragma once
#include "sourcerange.h"
@@ -55,5 +54,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_SKIPPEDSOURCERANGES_H
diff --git a/src/tools/clangbackend/ipcsource/sourcelocation.h b/src/tools/clangbackend/ipcsource/sourcelocation.h
index 0ce40f6c5f..2f278e8566 100644
--- a/src/tools/clangbackend/ipcsource/sourcelocation.h
+++ b/src/tools/clangbackend/ipcsource/sourcelocation.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_SOURCELOCATION_H
-#define CLANGBACKEND_SOURCELOCATION_H
+#pragma once
#include <clang-c/Index.h>
@@ -75,5 +74,3 @@ bool operator==(const SourceLocation &first, const SourceLocation &second);
void PrintTo(const SourceLocation &sourceLocation, ::std::ostream* os);
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_SOURCELOCATION_H
diff --git a/src/tools/clangbackend/ipcsource/sourcerange.h b/src/tools/clangbackend/ipcsource/sourcerange.h
index 9fe25aa94a..df5612004e 100644
--- a/src/tools/clangbackend/ipcsource/sourcerange.h
+++ b/src/tools/clangbackend/ipcsource/sourcerange.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_SOURCERANGE_H
-#define CLANGBACKEND_SOURCERANGE_H
+#pragma once
#include "sourcelocation.h"
@@ -62,5 +61,3 @@ private:
bool operator==(const SourceRange &first, const SourceRange &second);
void PrintTo(const SourceRange &sourceRange, ::std::ostream* os);
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_SOURCERANGE_H
diff --git a/src/tools/clangbackend/ipcsource/translationunitalreadyexistsexception.h b/src/tools/clangbackend/ipcsource/translationunitalreadyexistsexception.h
index 81055b8810..0db693dc0e 100644
--- a/src/tools/clangbackend/ipcsource/translationunitalreadyexistsexception.h
+++ b/src/tools/clangbackend/ipcsource/translationunitalreadyexistsexception.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TRANSLATIONUNITALREADYEXISTS_H
-#define CLANGBACKEND_TRANSLATIONUNITALREADYEXISTS_H
+#pragma once
#include <filecontainer.h>
@@ -52,5 +51,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TRANSLATIONUNITALREADYEXISTS_H
diff --git a/src/tools/clangbackend/ipcsource/translationunitdoesnotexistexception.h b/src/tools/clangbackend/ipcsource/translationunitdoesnotexistexception.h
index 77f87dea93..f4943d9a1c 100644
--- a/src/tools/clangbackend/ipcsource/translationunitdoesnotexistexception.h
+++ b/src/tools/clangbackend/ipcsource/translationunitdoesnotexistexception.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TRANSLATIONUNITDONOTEXISTS_H
-#define CLANGBACKEND_TRANSLATIONUNITDONOTEXISTS_H
+#pragma once
#include <filecontainer.h>
@@ -52,5 +51,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TRANSLATIONUNITDONOTEXISTS_H
diff --git a/src/tools/clangbackend/ipcsource/translationunitfilenotexitexception.h b/src/tools/clangbackend/ipcsource/translationunitfilenotexitexception.h
index a351b5b512..9081f3757e 100644
--- a/src/tools/clangbackend/ipcsource/translationunitfilenotexitexception.h
+++ b/src/tools/clangbackend/ipcsource/translationunitfilenotexitexception.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TRANSLATIONUNITFILENOTEXITS_H
-#define CLANGBACKEND_TRANSLATIONUNITFILENOTEXITS_H
+#pragma once
#include <utf8string.h>
@@ -53,5 +52,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TRANSLATIONUNITFILENOTEXITS_H
diff --git a/src/tools/clangbackend/ipcsource/translationunitisnullexception.h b/src/tools/clangbackend/ipcsource/translationunitisnullexception.h
index 6e68db62b6..c64c53369e 100644
--- a/src/tools/clangbackend/ipcsource/translationunitisnullexception.h
+++ b/src/tools/clangbackend/ipcsource/translationunitisnullexception.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TRANSLATIONUNITISNULLEXCEPTION_H
-#define CLANGBACKEND_TRANSLATIONUNITISNULLEXCEPTION_H
+#pragma once
#include <QtGlobal>
@@ -45,5 +44,3 @@ public:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TRANSLATIONUNITISNULLEXCEPTION_H
diff --git a/src/tools/clangbackend/ipcsource/translationunitparseerrorexception.h b/src/tools/clangbackend/ipcsource/translationunitparseerrorexception.h
index 8175fa7454..13b31e9c7d 100644
--- a/src/tools/clangbackend/ipcsource/translationunitparseerrorexception.h
+++ b/src/tools/clangbackend/ipcsource/translationunitparseerrorexception.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TRANSLATIONUNITPARSEERROREXCEPTION_H
-#define CLANGBACKEND_TRANSLATIONUNITPARSEERROREXCEPTION_H
+#pragma once
#include <utf8string.h>
@@ -55,5 +54,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TRANSLATIONUNITPARSEERROREXCEPTION_H
diff --git a/src/tools/clangbackend/ipcsource/translationunits.h b/src/tools/clangbackend/ipcsource/translationunits.h
index ef80e05371..d30ca98250 100644
--- a/src/tools/clangbackend/ipcsource/translationunits.h
+++ b/src/tools/clangbackend/ipcsource/translationunits.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_TRANSLATIONUNITS_H
-#define CLANGBACKEND_TRANSLATIONUNITS_H
+#pragma once
#include "clangfilesystemwatcher.h"
#include "clangtranslationunit.h"
@@ -119,5 +118,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_TRANSLATIONUNITS_H
diff --git a/src/tools/clangbackend/ipcsource/unsavedfiles.h b/src/tools/clangbackend/ipcsource/unsavedfiles.h
index f5617df9b8..270f4aa386 100644
--- a/src/tools/clangbackend/ipcsource/unsavedfiles.h
+++ b/src/tools/clangbackend/ipcsource/unsavedfiles.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef CLANGBACKEND_UNSAVEDFILES_H
-#define CLANGBACKEND_UNSAVEDFILES_H
+#pragma once
#include <filecontainer.h>
@@ -76,5 +75,3 @@ private:
};
} // namespace ClangBackEnd
-
-#endif // CLANGBACKEND_UNSAVEDFILES_H