clang-tidy: Basic configuration

This also cleans up some outstanding issues detected by the
configuration.

Tested:
    Ran through unit test scripts.

Change-Id: I3357a2280a681a87532d6d72315260db2ab73e87
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..f6ee139
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1 @@
+Checks: 'clang-analyzer-*'