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

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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment