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 @@
#ifndef cmCPackIFWGenerator_h
#define cmCPackIFWGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackComponentGroup.h"
#include "cmCPackGenerator.h"
......
......@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackIFWInstaller.h"
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <sstream>
#include <stddef.h>
#include <utility>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackIFWInstaller_h
#define cmCPackIFWInstaller_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmConfigure.h" // IWYU pragma: keep
#include <map>
#include <string>
......
......@@ -12,7 +12,7 @@
#include "cmTimestamp.h"
#include "cmXMLWriter.h"
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <map>
#include <sstream>
#include <stddef.h>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackIFWPackage_h
#define cmCPackIFWPackage_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmConfigure.h" // IWYU pragma: keep
#include <set>
#include <string>
......
......@@ -9,7 +9,7 @@
#include "cmXMLParser.h"
#include "cmXMLWriter.h"
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <stddef.h>
#ifdef cmCPackLogger
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackIFWRepository_h
#define cmCPackIFWRepository_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmConfigure.h" // IWYU pragma: keep
#include <string>
#include <vector>
......
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include <cmsys/FStream.hxx>
#include <cmsys/Process.h>
#include <cmsys/SystemTools.hxx>
#include "cmsys/FStream.hxx"
#include "cmsys/Process.h"
#include "cmsys/SystemTools.hxx"
#include <iostream>
#include <stddef.h>
#include <string>
......
......@@ -4,12 +4,12 @@
#include "cmCPackComponentGroup.h"
#include "cmCPackLog.h"
#include "cmCryptoHash.h"
#include "cmGeneratedFileStream.h"
#include "cmInstalledFile.h"
#include "cmSystemTools.h"
#include "cmUuid.h"
#include <algorithm>
#include <cmCryptoHash.h>
#include <cmGeneratedFileStream.h>
#include <cmInstalledFile.h>
#include <cmSystemTools.h>
#include <cmUuid.h>
#include "cmWIXDirectoriesSourceWriter.h"
#include "cmWIXFeaturesSourceWriter.h"
......@@ -17,10 +17,10 @@
#include "cmWIXRichTextFormatWriter.h"
#include "cmWIXSourceWriter.h"
#include <cmsys/Directory.hxx>
#include <cmsys/Encoding.hxx>
#include <cmsys/FStream.hxx>
#include <cmsys/SystemTools.hxx>
#include "cmsys/Directory.hxx"
#include "cmsys/Encoding.hxx"
#include "cmsys/FStream.hxx"
#include "cmsys/SystemTools.hxx"
#include <rpc.h> // for GUID generation
......
......@@ -4,7 +4,7 @@
#include "cmCPackGenerator.h"
#include <cmSystemTools.h>
#include "cmSystemTools.h"
cmWIXAccessControlList::cmWIXAccessControlList(
cmCPackLog* logger, cmInstalledFile const& installedFile,
......
......@@ -6,7 +6,7 @@
#include "cmWIXSourceWriter.h"
#include "cmCPackLog.h"
#include <cmInstalledFile.h>
#include "cmInstalledFile.h"
class cmWIXAccessControlList
{
......
......@@ -4,10 +4,10 @@
#include "cmWIXAccessControlList.h"
#include <cmInstalledFile.h>
#include "cmInstalledFile.h"
#include <cmSystemTools.h>
#include <cmUuid.h>
#include "cmSystemTools.h"
#include "cmUuid.h"
#include "cm_sys_stat.h"
......
......@@ -4,7 +4,7 @@
#include "cmCPackGenerator.h"
#include <cm_expat.h>
#include "cm_expat.h"
cmWIXPatchNode::Type cmWIXPatchText::type()
{
......
......@@ -5,7 +5,7 @@
#include "cmCPackLog.h"
#include <cmXMLParser.h>
#include "cmXMLParser.h"
#include <list>
#include <map>
......
......@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmWIXRichTextFormatWriter.h"
#include <cmVersion.h>
#include "cmVersion.h"
cmWIXRichTextFormatWriter::cmWIXRichTextFormatWriter(
std::string const& filename)
......
......@@ -3,9 +3,9 @@
#ifndef cmWIXRichTextFormatWriter_h
#define cmWIXRichTextFormatWriter_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <cmsys/FStream.hxx>
#include "cmsys/FStream.hxx"
#include <string>
/** \class cmWIXRichtTextFormatWriter
......
......@@ -3,7 +3,7 @@
#ifndef cmWIXShortcut_h
#define cmWIXShortcut_h
#include <cmInstalledFile.h>
#include "cmInstalledFile.h"
#include <map>
#include <set>
......
......@@ -4,7 +4,7 @@
#include "cmCPackGenerator.h"
#include <cmUuid.h>
#include "cmUuid.h"
#include <windows.h>
......
......@@ -5,7 +5,7 @@
#include "cmCPackLog.h"
#include <cmsys/FStream.hxx>
#include "cmsys/FStream.hxx"
#include <string>
#include <vector>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPack7zGenerator_h
#define cmCPack7zGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackArchiveGenerator.h"
#include "cmCPackGenerator.h"
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackArchiveGenerator_h
#define cmCPackArchiveGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmArchiveWrite.h"
#include "cmCPackGenerator.h"
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackBundleGenerator_h
#define cmCPackBundleGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <string>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackComponentGroup_h
#define cmCPackComponentGroup_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <string>
#include <vector>
......
......@@ -9,7 +9,7 @@
#include "cmSystemTools.h"
#include "cmake.h"
#include <cmsys/SystemTools.hxx>
#include "cmsys/SystemTools.hxx"
cmCPackCygwinBinaryGenerator::cmCPackCygwinBinaryGenerator()
{
......
......@@ -9,7 +9,7 @@
#include "cmSystemTools.h"
#include "cmake.h"
#include <cmsys/SystemTools.hxx>
#include "cmsys/SystemTools.hxx"
// Includes needed for implementation of RenameFile. This is not in
// system tools because it is not implemented robustly enough to move
......
......@@ -10,7 +10,7 @@
#include "cmSystemTools.h"
#include "cm_sys_stat.h"
#include <cmsys/Glob.hxx>
#include "cmsys/Glob.hxx"
#include <limits.h>
#include <map>
#include <ostream>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackDebGenerator_h
#define cmCPackDebGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackGenerator.h"
......
......@@ -7,8 +7,8 @@
#include "cmGeneratedFileStream.h"
#include "cmSystemTools.h"
#include <cmsys/FStream.hxx>
#include <cmsys/RegularExpression.hxx>
#include "cmsys/FStream.hxx"
#include "cmsys/RegularExpression.hxx"
#include <iomanip>
#include <map>
#include <stdlib.h>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackDragNDropGenerator_h
#define cmCPackDragNDropGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <sstream>
#include <stddef.h>
......
......@@ -2,10 +2,10 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackGenerator.h"
#include "cmsys/FStream.hxx"
#include "cmsys/Glob.hxx"
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <cmsys/FStream.hxx>
#include <cmsys/Glob.hxx>
#include <cmsys/RegularExpression.hxx>
#include <list>
#include <utility>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackGenerator_h
#define cmCPackGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <map>
#include <sstream>
......
......@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackGeneratorFactory.h"
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <ostream>
#include <utility>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackGeneratorFactory_h
#define cmCPackGeneratorFactory_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmConfigure.h" // IWYU pragma: keep
#include <map>
#include <string>
......
......@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackLog.h"
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <iostream>
#include "cmGeneratedFileStream.h"
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackLog_h
#define cmCPackLog_h
#include <cmConfigure.h> // IWYU pragma: keep
#include "cmConfigure.h" // IWYU pragma: keep
#include <ostream>
#include <string.h>
......
......@@ -8,9 +8,9 @@
#include "cmGeneratedFileStream.h"
#include "cmSystemTools.h"
#include "cmsys/Directory.hxx"
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <cmsys/Directory.hxx>
#include <cmsys/RegularExpression.hxx>
#include <map>
#include <sstream>
#include <stdlib.h>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackNSISGenerator_h
#define cmCPackNSISGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackGenerator.h"
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackOSXX11Generator_h
#define cmCPackOSXX11Generator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <string>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackPKGGenerator_h
#define cmCPackPKGGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <set>
#include <sstream>
......
......@@ -2,9 +2,9 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackPackageMakerGenerator.h"
#include "cmsys/FStream.hxx"
#include "cmsys/RegularExpression.hxx"
#include <assert.h>
#include <cmsys/FStream.hxx>
#include <cmsys/RegularExpression.hxx>
#include <map>
#include <sstream>
#include <stdio.h>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackPackageMakerGenerator_h
#define cmCPackPackageMakerGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackGenerator.h"
#include "cmCPackPKGGenerator.h"
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackProductBuildGenerator_h
#define cmCPackProductBuildGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include <string>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackRPMGenerator_h
#define cmCPackRPMGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackGenerator.h"
......
......@@ -2,7 +2,7 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackSTGZGenerator.h"
#include <cmsys/FStream.hxx>
#include "cmsys/FStream.hxx"
#include <sstream>
#include <stdio.h>
#include <string>
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackSTGZGenerator_h
#define cmCPackSTGZGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackGenerator.h"
#include "cmCPackTGZGenerator.h"
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackTGZGenerator_h
#define cmCPackTGZGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackArchiveGenerator.h"
#include "cmCPackGenerator.h"
......
......@@ -3,7 +3,7 @@
#ifndef cmCPackTXZGenerator_h
#define cmCPackTXZGenerator_h
#include <cmConfigure.h>
#include "cmConfigure.h"
#include "cmCPackArchiveGenerator.h"