Commit 1d829c86 authored by Daniel Pfeifer's avatar Daniel Pfeifer

Use quotes for non-system includes

Automate with:

git grep -l '#include <cm_' -- Source \
  | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g'

git grep -l '#include <cmsys/' -- Source \
  | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g'

git grep -l '#include <cm[A-Z]' -- Source \
  | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
parent 26ee9e42
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPackIFWGenerator_h #ifndef cmCPackIFWGenerator_h
#define cmCPackIFWGenerator_h #define cmCPackIFWGenerator_h
#include <cmConfigure.h> #include "cmConfigure.h"
#include "cmCPackComponentGroup.h" #include "cmCPackComponentGroup.h"
#include "cmCPackGenerator.h" #include "cmCPackGenerator.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */ file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackIFWInstaller.h" #include "cmCPackIFWInstaller.h"
#include <cmConfigure.h> #include "cmConfigure.h"
#include <sstream> #include <sstream>
#include <stddef.h> #include <stddef.h>
#include <utility> #include <utility>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPackIFWInstaller_h #ifndef cmCPackIFWInstaller_h
#define cmCPackIFWInstaller_h #define cmCPackIFWInstaller_h
#include <cmConfigure.h> // IWYU pragma: keep #include "cmConfigure.h" // IWYU pragma: keep
#include <map> #include <map>
#include <string> #include <string>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "cmTimestamp.h" #include "cmTimestamp.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include <cmConfigure.h> #include "cmConfigure.h"
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <stddef.h> #include <stddef.h>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPackIFWPackage_h #ifndef cmCPackIFWPackage_h
#define cmCPackIFWPackage_h #define cmCPackIFWPackage_h
#include <cmConfigure.h> // IWYU pragma: keep #include "cmConfigure.h" // IWYU pragma: keep
#include <set> #include <set>
#include <string> #include <string>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "cmXMLParser.h" #include "cmXMLParser.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include <cmConfigure.h> #include "cmConfigure.h"
#include <stddef.h> #include <stddef.h>
#ifdef cmCPackLogger #ifdef cmCPackLogger
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPackIFWRepository_h #ifndef cmCPackIFWRepository_h
#define cmCPackIFWRepository_h #define cmCPackIFWRepository_h
#include <cmConfigure.h> // IWYU pragma: keep #include "cmConfigure.h" // IWYU pragma: keep
#include <string> #include <string>
#include <vector> #include <vector>
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */ file Copyright.txt or https://cmake.org/licensing for details. */
#include <cmsys/FStream.hxx> #include "cmsys/FStream.hxx"
#include <cmsys/Process.h> #include "cmsys/Process.h"
#include <cmsys/SystemTools.hxx> #include "cmsys/SystemTools.hxx"
#include <iostream> #include <iostream>
#include <stddef.h> #include <stddef.h>
#include <string> #include <string>
......
...@@ -4,12 +4,12 @@ ...@@ -4,12 +4,12 @@
#include "cmCPackComponentGroup.h" #include "cmCPackComponentGroup.h"
#include "cmCPackLog.h" #include "cmCPackLog.h"
#include "cmCryptoHash.h"
#include "cmGeneratedFileStream.h"
#include "cmInstalledFile.h"
#include "cmSystemTools.h"
#include "cmUuid.h"
#include <algorithm> #include <algorithm>
#include <cmCryptoHash.h>
#include <cmGeneratedFileStream.h>
#include <cmInstalledFile.h>
#include <cmSystemTools.h>
#include <cmUuid.h>
#include "cmWIXDirectoriesSourceWriter.h" #include "cmWIXDirectoriesSourceWriter.h"
#include "cmWIXFeaturesSourceWriter.h" #include "cmWIXFeaturesSourceWriter.h"
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
#include "cmWIXRichTextFormatWriter.h" #include "cmWIXRichTextFormatWriter.h"
#include "cmWIXSourceWriter.h" #include "cmWIXSourceWriter.h"
#include <cmsys/Directory.hxx> #include "cmsys/Directory.hxx"
#include <cmsys/Encoding.hxx> #include "cmsys/Encoding.hxx"
#include <cmsys/FStream.hxx> #include "cmsys/FStream.hxx"
#include <cmsys/SystemTools.hxx> #include "cmsys/SystemTools.hxx"
#include <rpc.h> // for GUID generation #include <rpc.h> // for GUID generation
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "cmCPackGenerator.h" #include "cmCPackGenerator.h"
#include <cmSystemTools.h> #include "cmSystemTools.h"
cmWIXAccessControlList::cmWIXAccessControlList( cmWIXAccessControlList::cmWIXAccessControlList(
cmCPackLog* logger, cmInstalledFile const& installedFile, cmCPackLog* logger, cmInstalledFile const& installedFile,
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "cmWIXSourceWriter.h" #include "cmWIXSourceWriter.h"
#include "cmCPackLog.h" #include "cmCPackLog.h"
#include <cmInstalledFile.h> #include "cmInstalledFile.h"
class cmWIXAccessControlList class cmWIXAccessControlList
{ {
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
#include "cmWIXAccessControlList.h" #include "cmWIXAccessControlList.h"
#include <cmInstalledFile.h> #include "cmInstalledFile.h"
#include <cmSystemTools.h> #include "cmSystemTools.h"
#include <cmUuid.h> #include "cmUuid.h"
#include "cm_sys_stat.h" #include "cm_sys_stat.h"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "cmCPackGenerator.h" #include "cmCPackGenerator.h"
#include <cm_expat.h> #include "cm_expat.h"
cmWIXPatchNode::Type cmWIXPatchText::type() cmWIXPatchNode::Type cmWIXPatchText::type()
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "cmCPackLog.h" #include "cmCPackLog.h"
#include <cmXMLParser.h> #include "cmXMLParser.h"
#include <list> #include <list>
#include <map> #include <map>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */ file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmWIXRichTextFormatWriter.h" #include "cmWIXRichTextFormatWriter.h"
#include <cmVersion.h> #include "cmVersion.h"
cmWIXRichTextFormatWriter::cmWIXRichTextFormatWriter( cmWIXRichTextFormatWriter::cmWIXRichTextFormatWriter(
std::string const& filename) std::string const& filename)
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
#ifndef cmWIXRichTextFormatWriter_h #ifndef cmWIXRichTextFormatWriter_h
#define cmWIXRichTextFormatWriter_h #define cmWIXRichTextFormatWriter_h
#include <cmConfigure.h> #include "cmConfigure.h"
#include <cmsys/FStream.hxx> #include "cmsys/FStream.hxx"
#include <string> #include <string>
/** \class cmWIXRichtTextFormatWriter /** \class cmWIXRichtTextFormatWriter
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmWIXShortcut_h #ifndef cmWIXShortcut_h
#define cmWIXShortcut_h #define cmWIXShortcut_h
#include <cmInstalledFile.h> #include "cmInstalledFile.h"
#include <map> #include <map>
#include <set> #include <set>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "cmCPackGenerator.h" #include "cmCPackGenerator.h"
#include <cmUuid.h> #include "cmUuid.h"
#include <windows.h> #include <windows.h>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include "cmCPackLog.h" #include "cmCPackLog.h"
#include <cmsys/FStream.hxx> #include "cmsys/FStream.hxx"
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPack7zGenerator_h #ifndef cmCPack7zGenerator_h
#define cmCPack7zGenerator_h #define cmCPack7zGenerator_h
#include <cmConfigure.h> #include "cmConfigure.h"
#include "cmCPackArchiveGenerator.h" #include "cmCPackArchiveGenerator.h"
#include "cmCPackGenerator.h" #include "cmCPackGenerator.h"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPackArchiveGenerator_h #ifndef cmCPackArchiveGenerator_h
#define cmCPackArchiveGenerator_h #define cmCPackArchiveGenerator_h
#include <cmConfigure.h> #include "cmConfigure.h"
#include "cmArchiveWrite.h" #include "cmArchiveWrite.h"
#include "cmCPackGenerator.h" #include "cmCPackGenerator.h"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPackBundleGenerator_h #ifndef cmCPackBundleGenerator_h
#define cmCPackBundleGenerator_h #define cmCPackBundleGenerator_h
#include <cmConfigure.h> #include "cmConfigure.h"
#include <string> #include <string>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#ifndef cmCPackComponentGroup_h #ifndef cmCPackComponentGroup_h
#define cmCPackComponentGroup_h #define cmCPackComponentGroup_h
#include <cmConfigure.h> #include "cmConfigure.h"
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmake.h" #include "cmake.h"
#include <cmsys/SystemTools.hxx> #include "cmsys/SystemTools.hxx"
cmCPackCygwinBinaryGenerator::cmCPackCygwinBinaryGenerator() cmCPackCygwinBinaryGenerator::cmCPackCygwinBinaryGenerator()
{ {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmake.h" #include "cmake.h"