From e160b26d8c7476c63f6220ac69d1d6405e8ce3aa Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Wed, 20 Feb 2019 13:38:24 +0300 Subject: Replace 'typedef' with 'using' where it is possible One exception is that the 'typedef' for function pointers were skipped due to an additional work is required. Change-Id: I2112fded3abeaee1d1f49f56adfd2914d5db0324 Reviewed-by: Christian Kandeler --- src/lib/corelib/language/forward_decls.h | 84 ++++++++++++++++---------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'src/lib/corelib/language/forward_decls.h') diff --git a/src/lib/corelib/language/forward_decls.h b/src/lib/corelib/language/forward_decls.h index 5ce333ce9..6697ac8c9 100644 --- a/src/lib/corelib/language/forward_decls.h +++ b/src/lib/corelib/language/forward_decls.h @@ -47,89 +47,89 @@ namespace Internal { enum class ObserveMode; class Value; -typedef std::shared_ptr ValuePtr; -typedef std::shared_ptr ValueConstPtr; +using ValuePtr = std::shared_ptr; +using ValueConstPtr = std::shared_ptr; class ItemValue; -typedef std::shared_ptr ItemValuePtr; -typedef std::shared_ptr ItemValueConstPtr; +using ItemValuePtr = std::shared_ptr; +using ItemValueConstPtr = std::shared_ptr; class JSSourceValue; -typedef std::shared_ptr JSSourceValuePtr; -typedef std::shared_ptr JSSourceValueConstPtr; +using JSSourceValuePtr = std::shared_ptr; +using JSSourceValueConstPtr = std::shared_ptr; class VariantValue; -typedef std::shared_ptr VariantValuePtr; -typedef std::shared_ptr VariantValueConstPtr; +using VariantValuePtr = std::shared_ptr; +using VariantValueConstPtr = std::shared_ptr; class FileContext; -typedef std::shared_ptr FileContextPtr; -typedef std::shared_ptr FileContextConstPtr; +using FileContextPtr = std::shared_ptr; +using FileContextConstPtr = std::shared_ptr; class FileContextBase; -typedef std::shared_ptr FileContextBasePtr; -typedef std::shared_ptr FileContextBaseConstPtr; +using FileContextBasePtr = std::shared_ptr; +using FileContextBaseConstPtr = std::shared_ptr; class Probe; -typedef std::shared_ptr ProbePtr; -typedef std::shared_ptr ProbeConstPtr; +using ProbePtr = std::shared_ptr; +using ProbeConstPtr = std::shared_ptr; class PropertyMapInternal; -typedef std::shared_ptr PropertyMapPtr; -typedef std::shared_ptr PropertyMapConstPtr; +using PropertyMapPtr = std::shared_ptr; +using PropertyMapConstPtr = std::shared_ptr; class FileTagger; -typedef std::shared_ptr FileTaggerPtr; -typedef std::shared_ptr FileTaggerConstPtr; +using FileTaggerPtr = std::shared_ptr; +using FileTaggerConstPtr = std::shared_ptr; class ResolvedProduct; -typedef std::shared_ptr ResolvedProductPtr; -typedef std::shared_ptr ResolvedProductConstPtr; +using ResolvedProductPtr = std::shared_ptr; +using ResolvedProductConstPtr = std::shared_ptr; class ResolvedProject; -typedef std::shared_ptr ResolvedProjectPtr; -typedef std::shared_ptr ResolvedProjectConstPtr; +using ResolvedProjectPtr = std::shared_ptr; +using ResolvedProjectConstPtr = std::shared_ptr; class TopLevelProject; -typedef std::shared_ptr TopLevelProjectPtr; -typedef std::shared_ptr TopLevelProjectConstPtr; +using TopLevelProjectPtr = std::shared_ptr; +using TopLevelProjectConstPtr = std::shared_ptr; class ResolvedFileContext; -typedef std::shared_ptr ResolvedFileContextPtr; -typedef std::shared_ptr ResolvedFileContextConstPtr; +using ResolvedFileContextPtr = std::shared_ptr; +using ResolvedFileContextConstPtr = std::shared_ptr; class Rule; -typedef std::shared_ptr RulePtr; -typedef std::shared_ptr RuleConstPtr; +using RulePtr = std::shared_ptr; +using RuleConstPtr = std::shared_ptr; class ResolvedScanner; -typedef std::shared_ptr ResolvedScannerPtr; -typedef std::shared_ptr ResolvedScannerConstPtr; +using ResolvedScannerPtr = std::shared_ptr; +using ResolvedScannerConstPtr = std::shared_ptr; class SourceArtifactInternal; -typedef std::shared_ptr SourceArtifactPtr; -typedef std::shared_ptr SourceArtifactConstPtr; +using SourceArtifactPtr = std::shared_ptr; +using SourceArtifactConstPtr = std::shared_ptr; class ScriptFunction; -typedef std::shared_ptr ScriptFunctionPtr; -typedef std::shared_ptr ScriptFunctionConstPtr; +using ScriptFunctionPtr = std::shared_ptr; +using ScriptFunctionConstPtr = std::shared_ptr; class PrivateScriptFunction; class RuleArtifact; -typedef std::shared_ptr RuleArtifactPtr; -typedef std::shared_ptr RuleArtifactConstPtr; +using RuleArtifactPtr = std::shared_ptr; +using RuleArtifactConstPtr = std::shared_ptr; class ResolvedModule; -typedef std::shared_ptr ResolvedModulePtr; -typedef std::shared_ptr ResolvedModuleConstPtr; +using ResolvedModulePtr = std::shared_ptr; +using ResolvedModuleConstPtr = std::shared_ptr; class ResolvedGroup; -typedef std::shared_ptr GroupPtr; -typedef std::shared_ptr GroupConstPtr; +using GroupPtr = std::shared_ptr; +using GroupConstPtr = std::shared_ptr; class ArtifactProperties; -typedef std::shared_ptr ArtifactPropertiesPtr; -typedef std::shared_ptr ArtifactPropertiesConstPtr; +using ArtifactPropertiesPtr = std::shared_ptr; +using ArtifactPropertiesConstPtr = std::shared_ptr; class ExportedItem; using ExportedItemPtr = std::shared_ptr; -- cgit v1.2.3