Fixes #202 This PR fixes code style for the project files. The Problem Different files in the project use different code style. That is not consistent and leads to harder maintenance of the project. Description of the changes: Have investigated and determined the most used code style across the given codebase Have configured IDE and applied code style to all project files. Have crafted clang-formatter config. see https://clang.llvm.org/docs/ClangFormat.html https://clang.llvm.org/docs/ClangFormatStyleOptions.html Some cases were fixed manually How changes were validated: manual/ad-hoc testing, automated testing All tests pass as before because these are only code style changes. Additional Please review, and let me know if I have any mistake in the code style. In case of any mistake, I will change the configuration and re-apply it to the project.
55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
//
|
|
// pch.h
|
|
// Header for standard system include files.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
// Windows headers define min/max macros.
|
|
// Disable it for project code.
|
|
#define NOMINMAX
|
|
|
|
#include <collection.h>
|
|
#include <unordered_map>
|
|
#include <map>
|
|
#include <ppltasks.h>
|
|
#include <pplawait.h>
|
|
#include <memory>
|
|
#include <mutex>
|
|
#include <cassert>
|
|
#include <locale>
|
|
#include <sal.h>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <concrt.h>
|
|
#include <regex>
|
|
#include <string>
|
|
|
|
// C++\WinRT Headers
|
|
#include "winrt/base.h"
|
|
#include "winrt/Windows.ApplicationModel.h"
|
|
#include "winrt/Windows.ApplicationModel.Core.h"
|
|
#include "winrt/Windows.Foundation.Diagnostics.h"
|
|
#include "winrt/Windows.Globalization.h"
|
|
#include "winrt/Windows.Globalization.DateTimeFormatting.h"
|
|
#include "winrt/Windows.System.UserProfile.h"
|
|
#include "winrt/Windows.UI.ViewManagement.h"
|
|
#include "winrt/Windows.UI.Xaml.h"
|
|
|
|
// The following namespaces exist as a convenience to resolve
|
|
// ambiguity for Windows types in the Windows::UI::Xaml::Automation::Peers
|
|
// namespace that only exist on RS3.
|
|
// Once the app switches to min version RS3, the namespaces can be removed.
|
|
// TODO - MSFT 12735088
|
|
namespace StandardPeers = Windows::UI::Xaml::Automation::Peers;
|
|
namespace CalculatorApp::Common::Automation
|
|
{
|
|
}
|
|
namespace CustomPeers = CalculatorApp::Common::Automation;
|
|
|
|
// Project Headers
|
|
#include "App.xaml.h"
|