Folder Tidy



Contents

Folder Tidy uses all available CPU cores for the fastest possible tidying, and can handle TBs of files. With one click Folder Tidy will sort the files from the messy folder. Imagine having all the chaos sorted into tidy subfolders, such as Pictures, Music, Spreadsheets, Source Code, etc. In last week's article, How to clean up system files with the Windows 10 Disk Cleanup tool, I told you about the WinSxS folder and how it can accumulate a lot of extraneous files.I then showed you.

Don't worry, it's really easy to clean up. Download Folder Tidy right now and choose the folder to organize and with one click you'll see the files get sorted into the appropriate sub folders (Pictures, Word Documents, Numbers, Archives, etc). Compatibility: OS X 10.10 or later 64-bit. Configuration files: clang-tidy attempts to read configuration for each source file from a.clang-tidy file located in the closest parent directory of the source file. If InheritParentConfig is true in a config file, the configuration file in the parent directory (if any exists) will be taken and current config file will be applied on top of the.

  • Clang-Tidy

See also:

clang-tidy is a clang-based C++ “linter” tool. Its purpose is toprovide an extensible framework for diagnosing and fixing typical programmingerrors, like style violations, interface misuse, or bugs that can be deduced viastatic analysis. clang-tidy is modular and provides a convenientinterface for writing new checks.

clang-tidy is a LibTooling-based tool, and it’s easier to workwith if you set up a compile command database for your project (for an exampleof how to do this see How To Setup Tooling For LLVM). You can also specifycompilation options on the command line after --:

clang-tidy has its own checks and can also run Clang static analyzerchecks. Each check has a name and the checks to run can be chosen using the-checks= option, which specifies a comma-separated list of positive andnegative (prefixed with -) globs. Positive globs add subsets of checks,negative globs remove them. For example,

will disable all default checks (-*) and enable all clang-analyzer-*checks except for clang-analyzer-cplusplus* ones.

The -list-checks option lists all the enabled checks. When used without-checks=, it shows checks enabled by default. Use -checks=* to see allavailable checks or with any other value of -checks= to see which checks areenabled by this value.

There are currently the following groups of checks:

Name prefixDescription
abseil-Checks related to Abseil library.
altera-Checks related to OpenCL programming for FPGAs.
android-Checks related to Android.
boost-Checks related to Boost library.
bugprone-Checks that target bugprone code constructs.
cert-Checks related to CERT Secure Coding Guidelines.
clang-analyzer-Clang Static Analyzer checks.
concurrency-Checks related to concurrent programming (includingthreads, fibers, coroutines, etc.).
cppcoreguidelines-Checks related to C++ Core Guidelines.
darwin-Checks related to Darwin coding conventions.
fuchsia-Checks related to Fuchsia coding conventions.
google-Checks related to Google coding conventions.
hicpp-Checks related to High Integrity C++ Coding Standard.
linuxkernel-Checks related to the Linux Kernel coding conventions.
llvm-Checks related to the LLVM coding conventions.
llvmlibc-Checks related to the LLVM-libc coding standards.
misc-Checks that we didn’t have a better category for.
modernize-Checks that advocate usage of modern (currently “modern”means “C++11”) language constructs.
mpi-Checks related to MPI (Message Passing Interface).
objc-Checks related to Objective-C coding conventions.
openmp-Checks related to OpenMP API.
performance-Checks that target performance-related issues.
portability-Checks that target portability-related issues that don’trelate to any particular coding style.
readability-Checks that target readability-related issues that don’trelate to any particular coding style.
zircon-Checks related to Zircon kernel coding conventions.

Clang diagnostics are treated in a similar way as check diagnostics. Clangdiagnostics are displayed by clang-tidy and can be filtered out using-checks= option. However, the -checks= option does not affectcompilation arguments, so it can not turn on Clang warnings which are notalready turned on in build configuration. The -warnings-as-errors= optionupgrades any warnings emitted under the -checks= flag to errors (but itdoes not enable any checks itself).

Clang diagnostics have check names starting with clang-diagnostic-.Diagnostics which have a corresponding warning option, are namedclang-diagnostic-<warning-option>, e.g. Clang warning controlled by-Wliteral-conversion will be reported with check nameclang-diagnostic-literal-conversion.

The -fix flag instructs clang-tidy to fix found errors ifsupported by corresponding checks.

An overview of all the command-line options:

clang-tidy diagnostics are intended to call out code that does notadhere to a coding standard, or is otherwise problematic in some way. However,if the code is known to be correct, it may be useful to silence the warning.Some clang-tidy checks provide a check-specific way to silence the diagnostics,e.g. bugprone-use-after-move can besilenced by re-initializing the variable after it has been moved out,bugprone-string-integer-assignment can be suppressed byexplicitly casting the integer to char,readability-implicit-bool-conversion can also be suppressed byusing explicit casts, etc.

If a specific suppression mechanism is not available for a certain warning, orits use is not desired for some reason, clang-tidy has a genericmechanism to suppress diagnostics using NOLINT or NOLINTNEXTLINEcomments.

The NOLINT comment instructs clang-tidy to ignore warnings on thesame line (it doesn’t apply to a function, a block of code or any otherlanguage construct, it applies to the line of code it is on). If introducing thecomment in the same line would change the formatting in undesired way, theNOLINTNEXTLINE comment allows to suppress clang-tidy warnings on the nextline.

Both comments can be followed by an optional list of check names in parentheses(see below for the formal syntax).

For example:

The formal syntax of NOLINT/NOLINTNEXTLINE is the following:

Note that whitespaces between NOLINT/NOLINTNEXTLINE and the openingparenthesis are not allowed (in this case the comment will be treated just asNOLINT/NOLINTNEXTLINE), whereas in check names list (inside theparenthesis) whitespaces can be used and will be ignored.

-->

This topic is about the different ways to reduce the size of the WinSxS folder on a running version of Windows 10.

One commonly asked question is, 'Can I delete the WinSxS folder to regain some disk space?' The short answer is no. You can, however, reduce the size of the WinSxS folder using tools built into Windows. For more information about the WinSxS folder, see Manage the Component Store.

Windows 10 and Windows Server 2016 automatically reduce the size of the WinSxS folder by using methods similar to the ones described in this topic, in addition to internal processes, such as uninstalling and deleting packages with components that have been replaced by other components with newer versions. Previous versions of some components are kept on the system for a period of time, allowing you to rollback if necessary. After a period of time, these older components are automatically removed from the installation.

You can also reduce the size of a Windows image using some of the same techniques, as discussed in Reduce the Size of the Component Store in an Offline Windows Image.

To learn about finding the size of your WinSxS folder, see Determine the actual size of the WinSxS folder.

Warning

Deleting files from the WinSxS folder or deleting the entire WinSxS folder may severely damage your system so that your PC might not boot and make it impossible to update.

In Windows 10 and Windows Server 2016, you have a number of ways to start the cleanup of the component store, which use a combination of package deletion and component compression to clean up the WinSxS folder:

Task Scheduler

The StartComponentCleanup task was created in Windows 8 to regularly clean up components automatically when the system is not in use. This task is set to run automatically when triggered by the operating system. When run automatically, the task will wait at least 30 days after an updated component has been installed before uninstalling the previous versions of the component.

If you choose to run this task, the task will have a 1 hour timeout and may not completely clean up all files.

Run the StartComponentCleanup task in Task Scheduler to clean up and compress components

  1. If Task Scheduler is not open, start the Task Scheduler. For more information, see Start Task Scheduler.

  2. Expand the console tree and navigate to Task Scheduler LibraryMicrosoftWindowsServicingStartComponentCleanup.

  3. Under Selected Item, click Run

    Note

    The StartComponentCleanup task can also be started from the command line.

Dism.exe

The /Cleanup-Image parameter of Dism.exe provides advanced users more options to further reduce the size of the WinSxS folder. For more information, see DISM Operating System Package Servicing Command-Line Options.

Tidy

Use the /StartComponentCleanup parameter

  • Using the /StartComponentCleanup parameter of Dism.exe on a running version of Windows 10 gives you similar results to running the StartComponentCleanup task in Task Scheduler, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1-hour timeout limitation.

    From an elevated command prompt, type the following:

Use the /ResetBase switch with the /StartComponentCleanup parameter

  • Using the /ResetBase switch with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 10 removes all superseded versions of every component in the component store.

    From an elevated command prompt, type the following:

    Warning

    All existing service packs and updates cannot be uninstalled after this command is completed. This will not block the uninstallation of future service packs or updates.

Folder Tidy Vs Hazel

Use the /SPSuperseded parameter

Folder Tidy Up

  • To reduce the amount of space used by a Service Pack, use the /SPSuperseded parameter of Dism.exe on a running version of Windows 10 to remove any backup components needed for uninstallation of the service pack. A service pack is a collection of cumulative updates for a particular release of Windows.

    From an elevated command prompt, type the following:

    Warning The service pack cannot be uninstalled after this command is completed.

Disk Cleanup

Folder Tidy Free

You can use Disk Cleanup to reduce the number of unnecessary files on your drives, which can help your PC run faster. It can delete temporary files and system files, empty the Recycle Bin, and remove a variety of other items that you might no longer need. The option to cleanup updates helps reduce the size of the component store.

Run Disk Cleanup to delete system files

  • To delete system files run the steps as provided in Delete files using Disk Cleanup.

Folder Tidy

Related topics