Skip to content

Commit

Permalink
Remove StdAfx
Browse files Browse the repository at this point in the history
StdAfx includes headers that should be included in the source files as
well. This commit is meant as a first step towards making headers and
source file include what they actually need and thereby making them
order independent.

This commit only mechanically (by script) replaces the '#include
"StdAfx.h"' with it's content preserving ordering after removing
contained headers from target file to avoid dupes.

As for pch, cmake has a neat and clean way to handle this. Given that
fresh build takes only few seconds I might just do without tho.

Signed-off-by: Ralph Sennhauser <[email protected]>
  • Loading branch information
seragh committed Sep 1, 2024
1 parent 4612cc8 commit 3532401
Show file tree
Hide file tree
Showing 217 changed files with 521 additions and 491 deletions.
2 changes: 0 additions & 2 deletions FCollada/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ target_sources(FCollada
DLLEntry.cpp
FCollada.cpp
FColladaPlugin.cpp
StdAfx.cpp
StdAfx.h
PUBLIC FILE_SET HEADERS
FILES
FCollada.h
Expand Down
2 changes: 1 addition & 1 deletion FCollada/DLLEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"

#ifdef FCOLLADA_DLL
#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimationChannel.h"
#include "FCDocument/FCDAnimationCurve.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimation.h"
#include "FCDocument/FCDAnimationChannel.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimationChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDAnimationChannel.h"
#include "FCDocument/FCDAnimationCurve.h"

Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimationClip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimation.h"
#include "FCDocument/FCDAnimationChannel.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimationClipTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDLibrary.h"
#include "FCDocument/FCDAnimationClip.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimationCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDAnimationCurve.h"

#include "FCDocument/FCDAnimated.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimationCurveTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDAnimationCurve.h"
#include "FCDocument/FCDAnimationChannel.h"
#include "FCDocument/FCDAnimationCurveTools.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimationKey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDAnimationKey.h"

//
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAnimationMultiCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDAnimationCurve.h"
#include "FCDocument/FCDAnimationKey.h"
#include "FCDocument/FCDAnimationMultiCurve.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDAsset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAsset.h"
#include "FUtils/FUDateTime.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDCamera.h"

//
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDController.h"
#include "FCDocument/FCDSkinController.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDControllerInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDController.h"
#include "FCDocument/FCDControllerInstance.h"
#include "FCDocument/FCDSceneNode.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDControllerTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDControllerTools.h"
#include "FCDocument/FCDSkinController.h"
#include "FCDocument/FCDLibrary.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffect.h"
#include "FCDocument/FCDEffectStandard.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDObjectWithId.h"
#include "FCDocument/FCDEffectCode.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectParameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"

#include "FCDEffectParameter.h"
#include "FCDEffectParameter.hpp"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectParameterFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDEffectParameter.h"
#include "FCDocument/FCDEffectParameterFactory.h"
#include "FCDocument/FCDEffectParameterSampler.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectParameterSampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffectPass.h"
#include "FCDocument/FCDEffectProfile.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectParameterSurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffectPass.h"
#include "FCDocument/FCDEffectProfile.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDEffectTechnique.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffectPass.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectPassShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffectCode.h"
#include "FCDocument/FCDEffectPass.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectPassState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDEffectPassState.h"
//#include "FUtils/FUDaeSyntax.h"

Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffect.h"
#include "FCDocument/FCDEffectProfile.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectProfileFX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffect.h"
#include "FCDocument/FCDEffectCode.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectStandard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimated.h"
#include "FCDocument/FCDEffect.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectTechnique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffect.h"
#include "FCDocument/FCDEffectCode.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEffectTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEffect.h"
#include "FCDocument/FCDEffectStandard.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEmitter.h"
#include "FCDocument/FCDForceField.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEmitterInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEmitter.h"
#include "FCDocument/FCDEmitterInstance.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEmitterObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEmitterParticle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEmitter.h"
#include "FCDocument/FCDEmitterParticle.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAsset.h"
#include "FCDocument/FCDEntity.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEntityInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument.h"
#include "FCDEntity.h"
#include "FCDEntityInstance.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDEntityReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEntity.h"
#include "FCDocument/FCDEntityReference.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDExternalReferenceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDEntityReference.h"
#include "FCDocument/FCDExternalReferenceManager.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDExtra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimated.h"
#include "FCDocument/FCDExtra.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDForceDeflector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDForceDeflector.h"

2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDForceDrag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimated.h"
#include "FCDocument/FCDForceDrag.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDForceField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDExtra.h"
#include "FCDocument/FCDForceField.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDForceGravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimated.h"
#include "FCDocument/FCDForceGravity.h"
Expand Down
2 changes: 1 addition & 1 deletion FCollada/FCDocument/FCDForcePBomb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
MIT License: http://www.opensource.org/licenses/mit-license.php
*/

#include "StdAfx.h"
#include "FCollada.h"
#include "FCDocument/FCDocument.h"
#include "FCDocument/FCDAnimated.h"
#include "FCDocument/FCDForcePBomb.h"
Expand Down
Loading

0 comments on commit 3532401

Please sign in to comment.